Skip to content

Commit

Permalink
core: Trim URL before parsing
Browse files Browse the repository at this point in the history
Additional space at the end was causing the port to not parse properly.
  • Loading branch information
martonp authored and chappjc committed Feb 22, 2023
1 parent 535211f commit da7e768
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/core/core.go
Expand Up @@ -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.
Expand Down

0 comments on commit da7e768

Please sign in to comment.