mirror of
https://github.com/safing/portmaster
synced 2025-09-10 23:14:35 +00:00
Add option to DNS server to ignore them when they are not available via an interface network
This commit is contained in:
parent
35ac64bd82
commit
42e725921b
4 changed files with 29 additions and 1 deletions
|
@ -422,6 +422,12 @@ func resolveAndCache(ctx context.Context, q *Query, oldCache *RRCache) (rrCache
|
|||
continue
|
||||
}
|
||||
|
||||
// Skip unreachable link-local resolvers.
|
||||
if resolver.LinkLocalUnavailable {
|
||||
log.Tracer(ctx).Tracef("resolver: skipping resolver %s, because it is link-local and not available", resolver)
|
||||
continue
|
||||
}
|
||||
|
||||
// resolve
|
||||
log.Tracer(ctx).Tracef("resolver: sending query for %s to %s", q.ID(), resolver.Info.ID())
|
||||
rrCache, err = resolver.Conn.Query(ctx, q)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue