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);