Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does User Rules work with "Auto Mode By External PAC"? #1497

Open
mihail-jdanov opened this issue Jul 25, 2024 · 1 comment
Open

Does User Rules work with "Auto Mode By External PAC"? #1497

mihail-jdanov opened this issue Jul 25, 2024 · 1 comment

Comments

@mihail-jdanov
Copy link

mihail-jdanov commented Jul 25, 2024

I added a rule and it's working in "Auto Mode By PAC" mode (but only after turning client Off and back On) but not working in "Auto Mode By External PAC" mode. Is it OK and User Rules should work only in "Auto Mode By PAC"?
image
v1.10.2

@Mccranky83
Copy link

Mccranky83 commented Sep 23, 2024

Generally, "Auto Mode By PAC" utilizes a PAC file generated from GFW list, which typically is located at ~/.ShadowsocksX-NG/gfwlist.js.

Here's a snippet of the default rules:

var rules = [
  "|http:\/\/85.17.73.31\/",
  "||afreecatv.com",
  ...
]

The custom rules you added via "Edit User Rules For PAC..." is added to the top of the list:

var rules = [
  "||2ip.io",
  "|http:\/\/85.17.73.31\/",
  "||afreecatv.com",
  ...
]

@mihail-jdanov However, when you switch to "Auto Mode By External PAC", you're using a different PAC file all-together, so it's only natural that your rules don't work, because they're not even present in the external PAC file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants