leaf icon indicating copy to clipboard operation
leaf copied to clipboard

Feature process rule

Open lemos1235 opened this issue 2 years ago • 3 comments

add process rule

sample config:

[General]
dns-server = 223.5.5.5
tun = auto
loglevel = debug

[Proxy]
Direct = direct
SOCKS5 = socks,192.168.0.105,7890

[Rule]
# will match process path containing `curl`
PROCESS-NAME, curl, SOCKS5
# match process by pid
PROCESS-PID, 18868, SOCKS5
FINAL, Direct

lemos1235 avatar Apr 04 '23 08:04 lemos1235

  • Fetching process information is not always available in different environments such as iOS NE or UWP. What about making it an optional feature, and throw a warning whenever a config contains process rules?
  • PID is a volatile identifier. I am wondering whether PROCESS-PID rules are really useful...

bdbai avatar Apr 13 '23 08:04 bdbai

  • Fetching process information is not always available in different environments such as iOS NE or UWP. What about making it an optional feature, and throw a warning whenever a config contains process rules?
  • PID is a volatile identifier. I am wondering whether PROCESS-PID rules are really useful...
  • I will add a warning log later if the rule is not supported
  • Find the PID (Process ID) of Telegram, then configure the rule to observe if it can use the proxy.

lemos1235 avatar Apr 13 '23 09:04 lemos1235

Find the PID (Process ID) of Telegram, then configure the rule to observe if it can use the proxy.

I think there is a built-in connectivity indicator in the Telegram client? Anyway, users tweaking proxies can always comment out all rules but the FINAL one.

bdbai avatar Apr 13 '23 09:04 bdbai