increase OSresolver timeout, fix debug log statements

flush dns cache, manually hit captive portal on MacOS

fix real ip in debug log

treat all upstreams as down upon network change

delay upstream checks when leaking queries on network changes
This commit is contained in:
Alex
2025-02-03 21:19:03 -05:00
committed by Cuong Manh Le
parent 1560455ca3
commit 168eaf538b
2 changed files with 87 additions and 11 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ func (o *osResolver) Resolve(ctx context.Context, msg *dns.Msg) (*dns.Msg, error
ctx, cancel := context.WithCancel(ctx)
defer cancel()
dnsClient := &dns.Client{Net: "udp", Timeout: 2 * time.Second}
dnsClient := &dns.Client{Net: "udp", Timeout: 3 * time.Second}
ch := make(chan *osResolverResult, numServers)
wg := &sync.WaitGroup{}
wg.Add(numServers)