Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
NamNH committed Aug 2, 2024
1 parent 31029f5 commit 218fcfd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions create_adlist.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { createWriteStream, existsSync } from "node:fs";
import { resolve } from "node:path";

import {
createZeroTrustListsAtOnce,
createZeroTrustListsOneByOne,
} from "./lib/api.js";
import {
DEBUG,
DRY_RUN,
LIST_ITEM_LIMIT,
PROCESSING_FILENAME,
} from "./lib/constants.js";
Expand Down Expand Up @@ -119,17 +114,6 @@ console.log(`Number of blocked domains: ${domains.length}`);
console.log("\n\n");

(async () => {
if (DRY_RUN) {
console.log(
"Dry run complete - no lists were created. If this was not intended, please remove the DRY_RUN environment variable and try again."
);
return;
}

console.log(
`Creating ${numberOfLists} lists for ${domains.length} domains...`
);

const writeStream = createWriteStream("adlist.txt", { flags: "w" });
domains.forEach(function(domain) { writeStream.write('0.0.0.0 ' + domain + '\n'); });
writeStream.end();
Expand Down

0 comments on commit 218fcfd

Please sign in to comment.