1
alexwrong 2022-12-23 01:42:05 +08:00
还有人使用 PAC 么 ? 这个落伍了吧
|
2
Tamamopoi 2022-12-23 02:37:56 +08:00 via Android
浏览器里设置,插件 switchyomega 试试?
|
3
gengliangcais 2022-12-23 09:35:46 +08:00
v2ray ?
|
4
pagxir 2022-12-23 12:54:29 +08:00 via Android
用这个判断 isInNet 就可以了。
|
5
yaott2020 2022-12-23 15:52:35 +08:00 via Android
switchyomega 插件
|
6
basncy OP @pagxir 有好百来条路由, 不多也不少了.. 看到这个项目, 但不知道怎么生成 pac 文件 https://github.com/txthinking/bypass
|
7
pagxir 2022-12-23 16:38:01 +08:00
function FindProxyForURL(url, host)
{ var resolved_ip = dnsResolve(host); if (isInNet(resolved_ip, "10.0.0.0", "255.0.0.0") || isInNet(resolved_ip, "172.16.0.0", "255.240.0.0") || isInNet(resolved_ip, "192.168.0.0", "255.255.0.0") || isInNet(resolved_ip, "127.0.0.0", "255.255.255.0")) return "SOCKS proxy.example.com:1080"; return "DIRECT" } |