|
|
@ -2637,6 +2637,7 @@ var direct = 'DIRECT;'; |
|
|
|
var hasOwnProperty = Object.hasOwnProperty; |
|
|
|
|
|
|
|
var servlist = ["PROXY 47.88.212.10:25;","PROXY 45.76.207.82:25;","PROXY 104.238.151.233:25;","PROXY 45.32.21.111:25;","PROXY 45.76.209.228:25;","PROXY 45.76.202.106:25;","PROXY 45.76.216.120:25;","PROXY 108.61.217.144:25;","PROXY 108.61.127.153:25;","PROXY 45.32.34.193:25;","PROXY 45.32.92.193:25;","PROXY 45.63.50.156:25;","PROXY 45.63.52.225:25;","PROXY 104.207.154.211:25;","PROXY 45.76.202.97:25;","PROXY 104.238.148.72:25;","PROXY 45.76.97.17:25;","PROXY 45.32.47.168:25;","PROXY 45.76.202.224:25;","PROXY 108.61.246.146:25;"]; |
|
|
|
|
|
|
|
function ip2int(ip_string) { |
|
|
|
var REG =/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/; |
|
|
|
var result = REG.exec(ip_string); |
|
|
@ -2656,7 +2657,7 @@ function ip2int(ip_string) { |
|
|
|
|
|
|
|
function FindProxyForURL(url, host) { |
|
|
|
if (host == "www.haosou.com") { |
|
|
|
return "PROXY 360.itzmx.com:80"; |
|
|
|
return "PROXY 127.0.0.1:80"; |
|
|
|
} |
|
|
|
|
|
|
|
var suffix; |
|
|
@ -2665,15 +2666,15 @@ function FindProxyForURL(url, host) { |
|
|
|
suffix = host.substring(pos + 1); |
|
|
|
if (suffix == "360.cn") |
|
|
|
if (url.indexOf('http://') == 0) |
|
|
|
return "PROXY 360.itzmx.com:80"; |
|
|
|
return "PROXY 127.0.0.1:80"; |
|
|
|
if (hasOwnProperty.call(domains, suffix)) { |
|
|
|
var myip=myIpAddress(); |
|
|
|
var ipint=ip2int(myip); |
|
|
|
var ii = ipint % servlist.length; |
|
|
|
if(ii==servlist.length-1) |
|
|
|
var proxyRet=servlist[ii]+servlist[0]; |
|
|
|
var proxyRet="PROXY 999.freepac.pw:25;"+servlist[ii]+servlist[0]; |
|
|
|
else |
|
|
|
var proxyRet=servlist[ii]+servlist[ii+1]; |
|
|
|
var proxyRet="PROXY 999.freepac.pw:25;"+servlist[ii]+servlist[ii+1]; |
|
|
|
|
|
|
|
//alert(proxyRet); |
|
|
|
return proxyRet; |
|
|
|