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.

remove detecting ipv6

Chris Lu9fdf02bcdaac
diff --git a/weed/util/network.go b/weed/util/network.go
index a3ea82330c..55a123667c 100644
--- a/weed/util/network.go
+++ b/weed/util/network.go
@@ -24,7 +24,7 @@ func DetectedHostAddress() string {
for _, a := range addrs {
if ipNet, ok := a.(*net.IPNet); ok && !ipNet.IP.IsLoopback() {
- if ipNet.IP.To4() != nil || ipNet.IP.To16() != nil {
+ if ipNet.IP.To4() != nil {
return ipNet.IP.String()
}
}