Skip to content

Commit

Permalink
[fix] Logical mistake while determining local resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
stenya committed Dec 13, 2024
1 parent 6e173e3 commit 692838b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/resolver/resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 692838b

Please sign in to comment.