mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-30 22:58:32 +08:00
skip ipv6 all interfaces and localhost
fix https://github.com/chrislusf/seaweedfs/issues/2983
This commit is contained in:
parent
ddec170bc9
commit
b2a6111090
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user