mirror of
https://github.com/SukkaW/Surge.git
synced 2026-10-27 16:10:53 +08:00
Housekeeping
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Buffer } from 'node:buffer';
|
||||
import { stableHash } from 'stable-hash';
|
||||
|
||||
import type { Api as TgApi } from 'telegram';
|
||||
import type { Api as TgApi } from 'teleproto';
|
||||
|
||||
import type { TelegramBackupEndpoint } from './get-telegram-backup-ip';
|
||||
import { setBit, getBit } from 'foxts/bitwise';
|
||||
|
||||
@@ -31,7 +31,7 @@ import { split1st } from 'foxts/split-nth';
|
||||
if (file.startsWith('domainset' + path.sep)) {
|
||||
await runHash((await readFileIntoProcessedArray(fullpath)).map(i => (i[0] === '.' ? i.slice(1) : i)));
|
||||
} else if (file.startsWith('non_ip' + path.sep)) {
|
||||
await runHash((await readFileIntoProcessedArray(fullpath)).map(i => split1st(i, ',')));
|
||||
await runHash((await readFileIntoProcessedArray(fullpath)).map(i => split1st(i, ',')!));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user