mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-02 20:11:54 +08:00
Replace more utilities w/ foxts
This commit is contained in:
@@ -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[],
|
||||
|
||||
Reference in New Issue
Block a user