使用SS作为魔法的,可以右键->PAC->编辑本地PAC文件,然后打开pac.txt文件,翻到最下面,把函数FindProxyForURL从原先的
function FindProxyForURL(url, host) {
if (defaultMatcher.matchesAny(url, host) instanceof BlockingFilter) {
return proxy;
}
return direct;
}
修改成
function FindProxyForURL(url, host) {
if (host == 'music.163.com' || host == 'interface.music.163.com' || host == 'interface3.music.163.com' || host == 'apm.music.163.com' || host == 'apm3.music.163.com' || host == '59.111.181.38' || host == '59.111.181.60' || host == '223.252.199.66' || host == '223.252.199.67' || host == '59.111.160.195' || host == '59.111.160.197' || host == '193.112.159.225' || host == '39.105.63.80' || host == '47.100.127.239' || host == '118.24.63.156' || host == '59.111.181.35'|| host == '115.236.118.33'|| host == '115.236.121.1'|| host == '112.13.122.1'|| host == '112.13.119.17'|| host == '103.126.92.132') {
return 'PROXY 106.52.127.72:19951;'
}
if (defaultMatcher.matchesAny(url, host) instanceof BlockingFilter) {
return proxy;
}
return direct;
}
又即在访问SS的一大堆规则之前,先让网易云走我们的规则,访问楼主提供的服务器。
亲测可行。
|