Update 0.0.0.0 day fix to include localhost domians
This commit is contained in:
parent
b483e91f1e
commit
2f64e8b41f
1 changed files with 2 additions and 2 deletions
4
main.js
4
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 {
|
||||
|
|
Loading…
Reference in a new issue