Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save roberto68/0894cc8d40e383a20381be3650b8d338 to your computer and use it in GitHub Desktop.
Save roberto68/0894cc8d40e383a20381be3650b8d338 to your computer and use it in GitHub Desktop.
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