aboutsummaryrefslogtreecommitdiff
path: root/weed/util/net_timeout.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/util/net_timeout.go')
-rw-r--r--weed/util/net_timeout.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/net_timeout.go b/weed/util/net_timeout.go
index 7b59a081c..abb96c403 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 != "" {
+ if host != "localhost" && host != "" && host != "0.0.0.0" && host != "127.0.0.1" {
listner, err = net.Listen("tcp", JoinHostPort("localhost", port))
if err != nil {
return