mirror of
https://github.com/safing/portmaster
synced 2025-09-13 08:19:41 +00:00
Improve handling of failing dns resolvers
This commit is contained in:
parent
8dea8e6c46
commit
25a3f6053d
2 changed files with 6 additions and 8 deletions
|
@ -302,16 +302,14 @@ resolveLoop:
|
|||
// we are offline and this is not an online check query
|
||||
return nil, ErrOffline
|
||||
default:
|
||||
// includes ErrTimeout
|
||||
log.Tracer(ctx).Debugf("resolver: failed to resolve %s: %s", q.FQDN, err)
|
||||
}
|
||||
} else {
|
||||
// no error
|
||||
if rrCache == nil {
|
||||
// defensive: assume NXDomain
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
break resolveLoop
|
||||
}
|
||||
if rrCache == nil {
|
||||
continue
|
||||
}
|
||||
break resolveLoop
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue