diff --git a/pkg/net/http/http.go b/pkg/net/http/http.go index 4c574539887..3dbb6a50002 100644 --- a/pkg/net/http/http.go +++ b/pkg/net/http/http.go @@ -83,7 +83,7 @@ func safeSocketControl(network string, address string, conn syscall.RawConn) err return fmt.Errorf("host %s is invalid", host) } - if !ip.IsGlobalUnicast() || ip.IsPrivate() { + if !ip.IsGlobalUnicast() { return fmt.Errorf("ip %s is invalid", ip.String()) }