mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
.replace('||', '')
.replace('^', '')
This commit is contained in:
+4
-2
@@ -9,7 +9,7 @@ const LIST_ITEM_LIMIT = Number.isSafeInteger(Number(process.env.CLOUDFLARE_LIST_
|
||||
|
||||
if (!process.env.CI) console.log(`List item limit set to ${LIST_ITEM_LIMIT}`);
|
||||
|
||||
let whitelist = [];
|
||||
|
||||
|
||||
// Read whitelist.csv and parse
|
||||
fs.readFile('whitelist.csv', 'utf8', async (err, data) => {
|
||||
@@ -30,7 +30,9 @@ fs.readFile('whitelist.csv', 'utf8', async (err, data) => {
|
||||
.replace('0.0.0.0 ', '')
|
||||
.replace('127.0.0.1 ', '')
|
||||
.replace('::1 ', '')
|
||||
.replace(':: ', '');
|
||||
.replace(':: ', '')
|
||||
.replace('||', '')
|
||||
.replace('^', '');
|
||||
}).filter(domain => {
|
||||
return domainValidationPattern.test(domain);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user