mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-02 20:11:54 +08:00
Refactor: adjust more output
This commit is contained in:
@@ -5,6 +5,7 @@ import { fdir as Fdir } from 'fdir';
|
||||
import { green, yellow } from 'picocolors';
|
||||
import { processLineFromReadline } from './lib/process-line';
|
||||
import { getHostname } from 'tldts';
|
||||
import { OUTPUT_SURGE_DIR } from './constants/dir';
|
||||
|
||||
const PRESET_MITM_HOSTNAMES = [
|
||||
// '*baidu.com',
|
||||
@@ -36,7 +37,7 @@ const PRESET_MITM_HOSTNAMES = [
|
||||
];
|
||||
|
||||
(async () => {
|
||||
const folderListPath = pathFn.resolve(__dirname, '../List/');
|
||||
const folderListPath = pathFn.resolve(OUTPUT_SURGE_DIR, 'List/');
|
||||
|
||||
const rulesets = await new Fdir()
|
||||
.withFullPaths()
|
||||
|
||||
Reference in New Issue
Block a user