From b2a6111090432088bd7691b7da629f92687492e0 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 27 Apr 2022 17:18:09 -0700 Subject: [PATCH] skip ipv6 all interfaces and localhost fix https://github.com/chrislusf/seaweedfs/issues/2983 --- weed/util/net_timeout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/net_timeout.go b/weed/util/net_timeout.go index abb96c403..21aab30f8 100644 --- a/weed/util/net_timeout.go +++ b/weed/util/net_timeout.go @@ -109,7 +109,7 @@ func NewIpAndLocalListeners(host string, port int, timeout time.Duration) (ipLis WriteTimeout: timeout, } - if host != "localhost" && host != "" && host != "0.0.0.0" && host != "127.0.0.1" { + if host != "localhost" && host != "" && host != "0.0.0.0" && host != "127.0.0.1" && host != "[::]" && host != "[::1]" { listner, err = net.Listen("tcp", JoinHostPort("localhost", port)) if err != nil { return