-
Notifications
You must be signed in to change notification settings - Fork 609
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
添加PAC模式 #163
添加PAC模式 #163
Conversation
j4587698
commented
Oct 26, 2022
- 增加了Pac模式,目前没有放pac.txt文件,也没有增加下载pac.txt的功能。
- 由于c#自带的HttpListener要管理员权限才能使用,否则会报拒绝访问的错误,所以目前使用了TouchSocket作为HttpServer提供Pac文件支持。
感谢PR |
@2dust PAC模式对我来说是刚需,我觉得应该有很多机场比较差的人应该也刚需的。 回头我尝试一下使用TcpListener做个简易httpserver出来。 |
已经修改为使用TcpListener |
您是否已经测试通过? |
自己已经编译使用了,没问题。 |
参考sysproxy.exe |
@j4587698 看了下pac里的规则是有黑名单和白名单分开的,和之前v2rayN 3.x里的pac使用的adblock plus语法的规则不兼容,能否更新下直接使用adblock plus的规则?感觉更好用些 可以直接把gfwlist放进去了 |
@zdm9981 PAC的语法其实是操作系统或者浏览器处理的,软件只是把PAC作为一个网址提供给系统。现在给的也是gfwlist。 |
@j4587698 之前的版本里pac都是直接使用的gfwlist,gfwlist里是用 || 和 @@|| 来区分黑白名单放在一个列表里的 看了下新版的v2rayn和clashn把两个名单分开了。问题是目前也没有自动更新pac的功能,只能手动将gfwlist base64解码更新到pac文件里 如果要重新手动将黑白名单区分开比较麻烦。 |