diff --git a/client/core/core.go b/client/core/core.go index e3c6b298f9..e91e58af0d 100644 --- a/client/core/core.go +++ b/client/core/core.go @@ -1477,6 +1477,7 @@ const defaultDEXPort = "7232" // addrHost returns the host or url:port pair for an address. func addrHost(addr string) (string, error) { + addr = strings.TrimSpace(addr) const defaultHost = "localhost" const missingPort = "missing port in address" // Empty addresses are localhost.