remove leaking logic in favor of recovery logic.

This commit is contained in:
Alex
2025-02-07 15:25:19 -05:00
committed by Cuong Manh Le
parent af4b826b68
commit 98042d8dbd
4 changed files with 174 additions and 246 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func (p *prog) watchResolvConf(iface *net.Interface, ns []netip.Addr, setDnsFn f
mainLog.Load().Debug().Msgf("stopping watcher for %s", resolvConfPath)
return
case event, ok := <-watcher.Events:
if p.leakingQueryReset.Load() {
if p.recoveryRunning.Load() {
return
}
if !ok {