Only ignore localhost resolvers if they come from the system

This commit is contained in:
Daniel
2021-11-17 14:10:42 +01:00
parent b94adf17c1
commit 68710dd284

View File

@@ -112,7 +112,8 @@ func createResolver(resolverURL, source string) (*Resolver, bool, error) {
}
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
}