This commit is contained in:
SukkaW
2021-11-30 05:44:38 +08:00
parent a0168be5fd
commit b3c5c4be84
8 changed files with 536 additions and 87 deletions

View File

@@ -1,7 +1,7 @@
const fs = require('fs');
const { promises: fsPromises } = fs;
const pathFn = require('path');
let table;
const table = require('table');
const PRESET_MITM_HOSTNAMES = [
'*baidu.com',
@@ -23,14 +23,6 @@ const PRESET_MITM_HOSTNAMES = [
'*.prod.hosts.ooklaserver.net'
];
try {
table = require('table');
} catch (e) {
console.log('Dependency "table" not found');
console.log('"npm i table" then try again!');
process.exit(1);
}
(async () => {
const folderListPath = pathFn.resolve(__dirname, '../List/');
const rulesets = await listDir(folderListPath);