Close stale setup and line-ending gaps

This commit is contained in:
pewdiepie-archdaemon
2026-06-01 10:43:35 +09:00
parent df5a4dd954
commit 7e1a9ccc88
4 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -659,7 +659,7 @@ export function isLocalEndpoint(url) {
let host;
try { host = new URL(url).hostname; } catch (_e) { return true; }
if (!host) return true;
if (host === 'localhost' || host === '0.0.0.0' || host.endsWith('.local')) return true;
if (host === 'localhost' || host === '0.0.0.0' || host === 'host.docker.internal' || host.endsWith('.local')) return true;
if (typeof window !== 'undefined' && window.location && host === window.location.hostname) return true;
if (/^127\./.test(host)) return true;
if (/^10\./.test(host)) return true;