mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
set leakingQueryReset to prevent watchdogs from resetting dns
This commit is contained in:
@@ -1281,6 +1281,9 @@ func (p *prog) reinitializeOSResolver(networkChange bool) {
|
|||||||
|
|
||||||
// Launch a goroutine that monitors the non-OS upstreams.
|
// Launch a goroutine that monitors the non-OS upstreams.
|
||||||
go func() {
|
go func() {
|
||||||
|
p.leakingQueryReset.Store(true)
|
||||||
|
defer p.leakingQueryReset.Store(false)
|
||||||
|
|
||||||
recoveredUpstream, err := p.waitForNonOSResolverRecovery(ctx)
|
recoveredUpstream, err := p.waitForNonOSResolverRecovery(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
mainLog.Load().Warn().Err(err).Msg("No non-OS upstream recovered within the timeout; not re-enabling the listener")
|
mainLog.Load().Warn().Err(err).Msg("No non-OS upstream recovered within the timeout; not re-enabling the listener")
|
||||||
|
|||||||
Reference in New Issue
Block a user