From 692838b696c7375552eb0d836d54298d0d286f0b Mon Sep 17 00:00:00 2001 From: Alexandr Stelnykovych Date: Fri, 13 Dec 2024 17:02:38 +0200 Subject: [PATCH] [fix] Logical mistake while determining local resolvers --- service/resolver/resolvers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/resolver/resolvers.go b/service/resolver/resolvers.go index 45876b4e4..6510036bb 100644 --- a/service/resolver/resolvers.go +++ b/service/resolver/resolvers.go @@ -510,7 +510,7 @@ func setScopedResolvers(resolvers []*Resolver) { for _, resolver := range resolvers { if resolver.Info.IPScope.IsLAN() { localResolvers = append(localResolvers, resolver) - } else if _, err := netenv.GetLocalNetwork(resolver.Info.IP); err != nil { + } else if net, _ := netenv.GetLocalNetwork(resolver.Info.IP); net != nil { localResolvers = append(localResolvers, resolver) }