mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Refactor: speed up reject parsing
This commit is contained in:
@@ -25,10 +25,10 @@ const RESERVED_IPV4_CIDR = [
|
||||
];
|
||||
|
||||
export const buildInternalReverseChnCIDR = task(import.meta.path, async () => {
|
||||
const [cidr] = await Promise.all([
|
||||
const cidr = (await Promise.all([
|
||||
processLineFromReadline(await fetchRemoteTextAndReadByLine('https://raw.githubusercontent.com/misakaio/chnroutes2/master/chnroutes.txt')),
|
||||
fsp.mkdir(path.resolve(import.meta.dir, '../List/internal'), { recursive: true })
|
||||
]);
|
||||
]))[0];
|
||||
|
||||
const reversedCidr = exclude(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user