Replace more utilities w/ foxts

This commit is contained in:
SukkaW
2024-12-12 23:19:03 +08:00
parent 80ac403944
commit 72d953b230
21 changed files with 30 additions and 384 deletions

View File

@@ -1,11 +1,11 @@
const unsupported = Symbol('unsupported');
// const unsupported = Symbol('unsupported');
// https://sing-box.sagernet.org/configuration/rule-set/source-format/
export const PROCESSOR: Record<string, ((raw: string, type: string, value: string) => [key: keyof SingboxHeadlessRule, value: Required<SingboxHeadlessRule>[keyof SingboxHeadlessRule][number]] | null) | typeof unsupported> = {
'IP-ASN': unsupported,
'URL-REGEX': unsupported,
'USER-AGENT': unsupported
};
// export const PROCESSOR: Record<string, ((raw: string, type: string, value: string) => [key: keyof SingboxHeadlessRule, value: Required<SingboxHeadlessRule>[keyof SingboxHeadlessRule][number]] | null) | typeof unsupported> = {
// 'IP-ASN': unsupported,
// 'URL-REGEX': unsupported,
// 'USER-AGENT': unsupported
// };
interface SingboxHeadlessRule {
domain?: string[],