Correct default daemon URL.

This commit is contained in:
Jonathan Moody 2022-12-16 12:49:03 -06:00
parent 5e977e59a2
commit 0c79e6003a
2 changed files with 2 additions and 2 deletions

View file

@ -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
} }

View file

@ -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)