Fix and improve resolver scoping

This commit is contained in:
Daniel
2020-07-27 12:26:45 +02:00
parent 8512d7003f
commit caa9b3bdf9
3 changed files with 19 additions and 8 deletions

View File

@@ -274,7 +274,7 @@ func (resolver *Resolver) checkCompliance(_ context.Context, q *Query) error {
}
if noAssignedNameservers(q.SecurityLevel) {
if resolver.Source == ServerSourceAssigned {
if resolver.Source == ServerSourceOperatingSystem {
return errAssignedServer
}
}