创建 PAC 脚本
function FindProxyForURL(url, host)
{
if (isInNet(host, "192.168.1.0", "255.255.255.0"))
return "DIRECT";
return "SOCKS xxx.xxx.xxx.xxx:xxxx";
}
将此脚本放入一个 Web Server 的服务目录中。
应用代理服务
1. 打开设置 -> Wifi -> 选择当前使用的 Wifi。
2. 将 HTTP 代理置于 Auto 模式,输入上面文件的 URL。
Over!