From da7e7680482ab84bbb35746dc3948c6e960c5e7c Mon Sep 17 00:00:00 2001 From: martonp Date: Sat, 18 Feb 2023 16:49:10 -0500 Subject: [PATCH] core: Trim URL before parsing Additional space at the end was causing the port to not parse properly. --- client/core/core.go | 1 + 1 file changed, 1 insertion(+) 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.