Browse Source
Update pac
update localsocks and proxy
pull/984/head
HYe2cS
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
pac
|
@ -1,5 +1,5 @@ |
|
|
var proxy = "PROXY xi.dnsfree.space:443;"; |
|
|
var proxy = "SOCKS5 127.0.0.1:2080; DIRECT;"; |
|
|
|
|
|
var localsocks = "SOCKS5 127.0.0.1:80"; |
|
|
var domains = { |
|
|
var domains = { |
|
|
"huaglad.com": 1, |
|
|
"huaglad.com": 1, |
|
|
"slideshare.net": 1, |
|
|
"slideshare.net": 1, |
|
@ -2216,7 +2216,7 @@ function ip2int(ip_string) { |
|
|
|
|
|
|
|
|
function FindProxyForURL(url, host) { |
|
|
function FindProxyForURL(url, host) { |
|
|
if (host == "www.haosou.com") { |
|
|
if (host == "www.haosou.com") { |
|
|
return "PROXY 360.itzmx.com:80"; |
|
|
return localsocks; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var suffix; |
|
|
var suffix; |
|
@ -2225,7 +2225,7 @@ function FindProxyForURL(url, host) { |
|
|
suffix = host.substring(pos + 1); |
|
|
suffix = host.substring(pos + 1); |
|
|
if (suffix == "360.cn") |
|
|
if (suffix == "360.cn") |
|
|
if (url.indexOf('http://') == 0) |
|
|
if (url.indexOf('http://') == 0) |
|
|
return "PROXY 360.itzmx.com:80"; |
|
|
return localsocks; |
|
|
if (hasOwnProperty.call(domains, suffix)) { |
|
|
if (hasOwnProperty.call(domains, suffix)) { |
|
|
var myip=myIpAddress(); |
|
|
var myip=myIpAddress(); |
|
|
var ipint=ip2int(myip); |
|
|
var ipint=ip2int(myip); |
|
|