From a6da3eb77092b9744bde2394e83809cf6cfc33cb Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 30 Oct 2025 08:58:54 -0700 Subject: [PATCH] server can start when no network for local dev --- weed/util/network.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weed/util/network.go b/weed/util/network.go index 69559b5f0..b801ec682 100644 --- a/weed/util/network.go +++ b/weed/util/network.go @@ -44,7 +44,11 @@ func selectIpV4(netInterfaces []net.Interface, isIpV4 bool) string { } } else { if ipNet.IP.To16() != nil { - return ipNet.IP.String() + // Filter out link-local IPv6 addresses (fe80::/10) + // They require zone identifiers and are not suitable for server binding + if !ipNet.IP.IsLinkLocalUnicast() { + return ipNet.IP.String() + } } } }