From 8a59370d12a9e61a4ae1d35735a0dca9d09a4cfc Mon Sep 17 00:00:00 2001 From: Michael Thiesen Date: Fri, 25 Oct 2024 22:02:17 -0700 Subject: [PATCH] Cleared DNS timeout before restoring original DNS servers --- src/dns.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dns.ts b/src/dns.ts index adc023d..5509158 100644 --- a/src/dns.ts +++ b/src/dns.ts @@ -41,6 +41,7 @@ export async function validateDns(ssh: SNodeSSH): Promise { async function restoreDnsServers() { try { console.log("Restoring original DNS servers..."); + if (timeoutId) clearTimeout(timeoutId); await withSshConnection(async (ssh) => { await setDnsServers(ssh, env.PRIMARY_DNS_SERVERS); });