Only ignore localhost resolvers if they come from the system
This commit is contained in:
@@ -112,7 +112,8 @@ func createResolver(resolverURL, source string) (*Resolver, bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
scope := netutils.GetIPScope(ip)
|
scope := netutils.GetIPScope(ip)
|
||||||
if scope.IsLocalhost() {
|
// Skip localhost resolvers from the OS, but not if configured.
|
||||||
|
if scope.IsLocalhost() && source == ServerSourceOperatingSystem {
|
||||||
return nil, true, nil // skip
|
return nil, true, nil // skip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user