From c4da0108e6dc88bfc815c4006698ab1fd2877779 Mon Sep 17 00:00:00 2001 From: Michael Thiesen Date: Fri, 18 Oct 2024 00:30:46 -0700 Subject: [PATCH] Increased DNS restore delay from 5 seconds to 2 minutes --- src/dns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns.ts b/src/dns.ts index a0dcfce..adee3bd 100644 --- a/src/dns.ts +++ b/src/dns.ts @@ -2,7 +2,7 @@ import env from "./env"; import { getSshConnection, type SNodeSSH } from "./ssh"; let timeoutId: NodeJS.Timeout | null = null; -const RESTORE_DELAY = 1000 * 5; +const RESTORE_DELAY = 1000 * 60 * 2; export async function toggleDns(ssh: SNodeSSH) { if (timeoutId) clearTimeout(timeoutId);