From e1301ade963b9e6b1388daf214f1a711af4d8ec1 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 7 Feb 2025 02:55:42 -0500 Subject: [PATCH] remove context timeout --- cmd/cli/dns_proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cli/dns_proxy.go b/cmd/cli/dns_proxy.go index 6b26a33..0eab69b 100644 --- a/cmd/cli/dns_proxy.go +++ b/cmd/cli/dns_proxy.go @@ -1274,8 +1274,8 @@ func (p *prog) reinitializeOSResolver(networkChange bool) { p.recoveryCancel() p.recoveryCancel = nil } - // Create a new context (with a timeout) for this recovery wait. - ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) + + ctx, cancel := context.WithCancel(context.Background()) p.recoveryCancel = cancel p.recoveryCancelMu.Unlock()