Chore: fix singbox & clash processPath, more TODO

This commit is contained in:
SukkaW
2024-09-21 04:41:03 +08:00
parent 9eec31be10
commit a3aec826f5
3 changed files with 12 additions and 4 deletions

View File

@@ -30,8 +30,7 @@ const PROCESSOR: Record<string, ((raw: string, type: string, value: string) => s
'SRC-IP-CIDR': identity,
'SRC-PORT': identity,
'DST-PORT': identity,
'PROCESS-NAME': identity,
'PROCESS-PATH': identity,
'PROCESS-NAME': (_raw, _type, value) => ((value.includes('/') || value.includes('\\')) ? `PROCESS-PATH,${value}` : `PROCESS-NAME,${value}`),
'DEST-PORT': (_raw, _type, value) => `DST-PORT,${value}`,
'IN-PORT': (_raw, _type, value) => `SRC-PORT,${value}`,
'URL-REGEX': unsupported,