diff --git a/http/httpproxy/proxy.go b/http/httpproxy/proxy.go index 6404aaf15..12de9bfb5 100644 --- a/http/httpproxy/proxy.go +++ b/http/httpproxy/proxy.go @@ -174,16 +174,8 @@ func (cfg *config) useProxy(addr string) bool { if err != nil { return false } - if host == "localhost" { - return false - } - ip := net.ParseIP(host) - if ip != nil { - if ip.IsLoopback() { - return false - } - } + ip := net.ParseIP(host) addr = strings.ToLower(strings.TrimSpace(host)) if ip != nil {