Created
May 13, 2016 09:11
-
-
Save roberto68/0894cc8d40e383a20381be3650b8d338 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host){ | |
//var secproxy = [112.65.200.211:80, 58.21.64.176:8888, 123.56.228.224:8080]; | |
var secproxy = "112.65.200.211:80"; | |
if (dnsResolve(host) == "223.252.199.7") { // = http://secproxy | |
// if (dnsResolve(host) == "music.163.com") { | |
return "PROXY secproxy:8080"; // rather like list of proxies - if one is not working use other | |
} | |
else { | |
return "PROXY proxy:80"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment