mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
Update whitelist command: Display domain count
This commit is contained in:
+1
-1
@@ -38,10 +38,10 @@ fs.readFile('whitelist.csv', 'utf8', async (err, data) => {
|
||||
}).filter(domain => {
|
||||
return domainValidationPattern.test(domain);
|
||||
});
|
||||
console.log(`Found ${whitelist.length} valid domains in whitelist.`);
|
||||
}
|
||||
});
|
||||
|
||||
console.log(`Found ${whitelist.length} valid domains in whitelist.`);
|
||||
|
||||
// Read input.csv and parse domains
|
||||
fs.readFile('input.csv', 'utf8', async (err, data) => {
|
||||
|
||||
Reference in New Issue
Block a user