mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
fixup
This commit is contained in:
+3
-3
@@ -11,8 +11,6 @@ if (!process.env.CI) console.log(`List item limit set to ${LIST_ITEM_LIMIT}`);
|
||||
|
||||
let whitelist = []; // Define an empty array for the whitelist
|
||||
|
||||
|
||||
|
||||
// Read whitelist.csv and parse
|
||||
fs.readFile('whitelist.csv', 'utf8', async (err, data) => {
|
||||
if (err) {
|
||||
@@ -63,7 +61,9 @@ fs.readFile('input.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