Skip to content

Commit

Permalink
Cleared DNS timeout before restoring original DNS servers
Browse files Browse the repository at this point in the history
  • Loading branch information
micthiesen committed Oct 26, 2024
1 parent 4951b5d commit 8a59370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export async function validateDns(ssh: SNodeSSH): Promise<PushoverMessage> {
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);
});
Expand Down

0 comments on commit 8a59370

Please sign in to comment.