Fix handling of connectivity / captive portal domains
Also, improve handling of queries during being captive.
This commit is contained in:
@@ -180,6 +180,11 @@ func checkCache(ctx context.Context, q *Query) *RRCache {
|
||||
|
||||
// check if expired
|
||||
if rrCache.Expired() {
|
||||
if netenv.IsConnectivityDomain(rrCache.Domain) {
|
||||
// do not use cache, resolve immediately
|
||||
return nil
|
||||
}
|
||||
|
||||
rrCache.Lock()
|
||||
rrCache.requestingNew = true
|
||||
rrCache.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user