diff --git a/cli/agent.go b/cli/agent.go index 706dc45d6cb51..697648b4a6c2a 100644 --- a/cli/agent.go +++ b/cli/agent.go @@ -336,8 +336,8 @@ func urlPort(u string) (int, error) { return -1, xerrors.Errorf("invalid url %q: %w", u, err) } if parsed.Port() != "" { - port, err := strconv.ParseInt(parsed.Port(), 10, 64) - if err == nil && port > 0 { + port, err := strconv.ParseUint(parsed.Port(), 10, 16) + if err == nil && port > 0 && port < 1<<16 { return int(port), nil } }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: