diff --git a/proxy/http/server.go b/proxy/http/server.go index e5a0a10a..6ed20e60 100644 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -54,7 +54,7 @@ func parseHost(rawHost string, defaultPort net.Port) (net.Destination, error) { } else { return net.Destination{}, err } - } else { + } else if len(rawPort) > 0 { intPort, err := strconv.Atoi(rawPort) if err != nil { return net.Destination{}, err