mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
cosmetic
This commit is contained in:
+2
-2
@@ -36,7 +36,7 @@ let allowedDomainCount = 0;
|
|||||||
|
|
||||||
// Read allowlist
|
// Read allowlist
|
||||||
console.log(`Processing ${allowlistFilename}`);
|
console.log(`Processing ${allowlistFilename}`);
|
||||||
await readFile(resolve(allowlistFilename), (line) => {
|
await readFile(resolve(`./${allowlistFilename}`), (line) => {
|
||||||
const _line = line.trim();
|
const _line = line.trim();
|
||||||
|
|
||||||
if (!_line) return;
|
if (!_line) return;
|
||||||
@@ -52,7 +52,7 @@ await readFile(resolve(allowlistFilename), (line) => {
|
|||||||
|
|
||||||
// Read blocklist
|
// Read blocklist
|
||||||
console.log(`Processing ${blocklistFilename}`);
|
console.log(`Processing ${blocklistFilename}`);
|
||||||
await readFile(resolve(blocklistFilename), (line, rl) => {
|
await readFile(resolve(`./${blocklistFilename}`), (line, rl) => {
|
||||||
if (domains.length === LIST_ITEM_LIMIT) {
|
if (domains.length === LIST_ITEM_LIMIT) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user