Correct default daemon URL.
This commit is contained in:
parent
5e977e59a2
commit
0c79e6003a
2 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ func ParseArgs(searchRequest *pb.SearchRequest) *Args {
|
||||||
searchCmd := parser.NewCommand("search", "claim search")
|
searchCmd := parser.NewCommand("search", "claim search")
|
||||||
dbCmd := parser.NewCommand("db", "db testing")
|
dbCmd := parser.NewCommand("db", "db testing")
|
||||||
|
|
||||||
defaultDaemonURL := "localhost:9245"
|
defaultDaemonURL := "http://localhost:9245"
|
||||||
if url, ok := environment["DAEMON_URL"]; ok {
|
if url, ok := environment["DAEMON_URL"]; ok {
|
||||||
defaultDaemonURL = url
|
defaultDaemonURL = url
|
||||||
}
|
}
|
||||||
|
|
|
@ -257,7 +257,7 @@ func MakeHubServer(grp *stop.Group, args *Args) *Server {
|
||||||
}
|
}
|
||||||
|
|
||||||
var lbcdClient *lbcd.Client = nil
|
var lbcdClient *lbcd.Client = nil
|
||||||
if args.DaemonURL != nil {
|
if args.DaemonURL != nil && args.DaemonURL.Host != "" {
|
||||||
var rpcCertificate []byte
|
var rpcCertificate []byte
|
||||||
if args.DaemonCAPath != "" {
|
if args.DaemonCAPath != "" {
|
||||||
rpcCertificate, err = ioutil.ReadFile(args.DaemonCAPath)
|
rpcCertificate, err = ioutil.ReadFile(args.DaemonCAPath)
|
||||||
|
|
Loading…
Reference in a new issue