TokenPLS:macOS 浏览器分流需覆盖 helper 的完整路径

TokenPLS 在 macOS 27 测试确认,PROCESS-PATH-WILDCARD 的 * 可匹配斜杠且不区分大小写,覆盖整个 Chrome.app 可匹配其 Frameworks 内的网络 helper。Safari 的网络进程在系统 WebKit XPC 路径,不位于 Safari.app;作者未测试替代的 PROCESS-NAME 写法。

作者原文

Verified on macOS 27 so the suggestion above is safe to use as written:

  • In PROCESS-PATH-WILDCARD, * matches any characters including /, and the comparison is case-insensitive. With only PROCESS-PATH-WILDCARD,/Applications/Google Chrome.app/*,PROXY and MATCH,DIRECT, opening 15 tabs in Chrome matched 374 connections, all from …/Contents/Frameworks/Google Chrome Framework.framework/…/Helpers/Google Chrome Helper (Aperitif).app/….
  • For a browser installed elsewhere, use its actual .app path as the prefix.
  • Safari is different: its network process is not inside Safari.app but at /System/Library/…/com.apple.WebKit.Networking.xpc, so a Safari path rule has to point there (or use PROCESS-NAME,com.apple.WebKit.Networking, which we have not tested).