Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 0e3e7c2

Browse files
Merge branch 'dev' into main
2 parents 0ca1d10 + 9ca0718 commit 0e3e7c2

File tree

5 files changed

+9109
-5284
lines changed

5 files changed

+9109
-5284
lines changed

index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ fs.readFile(join(__dirname, 'blocklists/ADS.txt'), (err, data) => {
7171
const lines = data.toString().split('\n');
7272
for (let i in lines) blacklisted.push(lines[i]);
7373
});
74+
//@ts-ignore
75+
//we do @ts-ignore because numCPUs is inferred as string | number and breaks
7476
if (numCPUs > 0 && cluster.isPrimary) {
7577
console.log(debug(`Primary ${process.pid} is running`));
78+
//@ts-ignore
7679
for (let i = 0; i < numCPUs; i++) {
7780
cluster.fork().on('online', () => {
7881
console.log(debug2(`Worker ${i + 1} is online`));
@@ -150,7 +153,8 @@ if (numCPUs > 0 && cluster.isPrimary) {
150153
url.pathname.includes('/uv') ||
151154
url.pathname.includes('/aero') ||
152155
url.pathname.includes('/osana') ||
153-
url.pathname.includes('/dip')
156+
url.pathname.includes('/dip') ||
157+
url.pathname.includes('/rh')
154158
) {
155159
return res.end(educationWebsite);
156160
} else {

0 commit comments

Comments
 (0)