Process Rule
You may assign a policy for a specified process. Process rule is available for Surge Mac only, Surge iOS ignores these rules.
PROCESS-NAME Mac Only
PROCESS-NAME,Telegram,Proxy
The PROCESS-NAME rule expression is highly flexible and supports several matching modes:
Filename Mode
If the expression does not start with
/, it matches only the executable file name, regardless of its path.Wildcards
*and?are supported in this mode. For example:PROCESS-NAME,Google*Full Path Mode
If the expression starts with
/, it matches the executable’s full absolute path.Wildcards are not supported in this mode. For example:
PROCESS-NAME,/usr/bin/sshApp Bundle Mode Mac 6.0.0+
If the expression starts with
/and also ends with/, the executable path is matched by prefix.This mode is particularly useful for application bundles that contain multiple executables. For example:
PROCESS-NAME,/Applications/ChatGPT.app/