Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

skip ipv6 all interfaces and localhost

chrislub2a611109043
diff --git a/weed/util/net_timeout.go b/weed/util/net_timeout.go
index abb96c403f..21aab30f87 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