From 2f64e8b41fa41f8aba65cd8c5d2b1978451ed137 Mon Sep 17 00:00:00 2001 From: Sam Sneed <163201376+sam-sneed@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:34:58 -0500 Subject: [PATCH] Update 0.0.0.0 day fix to include localhost domians --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 512b3ee..e73de3c 100644 --- a/main.js +++ b/main.js @@ -33,7 +33,7 @@ async function enableGoodies(s) { // 0.0.0.0 day fix const locals = [ - '0.0.0.0', '127.0.0.1', '192.168', '.local' + '0.0.0.0', '127.0.0.1', '192.168', '.local', '.example', '.staging', 'fe80::', '::1' ]; // Function to check if a URL is restricted @@ -148,7 +148,7 @@ const regexPatterns = [ console.log(`[W] Local domain is being accessed by external source (${initiator}), don't allow!`); callback({ cancel: true }); // Block request to local domains from remote sources } else { - //console.log("Local domain is not being accessed by external source, allow..."); //debug + //console.log("Local domain is not being accessed by external source, allow..."); // debug callback({ cancel: false }); // Allow request } } else {