From 7048baebc2248218f34c0b08bcf5c49f7deddb22 Mon Sep 17 00:00:00 2001 From: skidoodle Date: Sat, 7 Mar 2026 00:53:57 +0100 Subject: [PATCH] localhost failsafe --- services/dns.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/dns.ts b/services/dns.ts index 3cdc143..4404172 100644 --- a/services/dns.ts +++ b/services/dns.ts @@ -1,5 +1,8 @@ export const DnsService = { async resolve(hostname: string): Promise { + if (hostname === 'localhost' || hostname.endsWith('.local')) { + return '127.0.0.1'; + } try { const controller = new AbortController(); const timeout = setTimeout(() => controller.abort(), 5000);