mirror of
https://github.com/safing/portmaster
synced 2025-09-11 07:24:36 +00:00
Fix handling of connectivity / captive portal domains
Also, improve handling of queries during being captive.
This commit is contained in:
parent
a6e161e0a1
commit
68c2d23c1b
15 changed files with 223 additions and 63 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue