Skip to content

Instantly share code, notes, and snippets.

@banasiak
Created February 17, 2015 18:51
Show Gist options
  • Save banasiak/b391215220d081335a89 to your computer and use it in GitHub Desktop.
Save banasiak/b391215220d081335a89 to your computer and use it in GitHub Desktop.
PAC File
function FindProxyForURL(url, host)
{
url = url.toLowerCase();
host = host.toLowerCase();
// whole site
var site_list = [
p.ikenex.com
];
for(var index = 0;index<site_list.length;index++){
if(host==site_list[index] ||
shExpMatch(host, "*." + site_list[index])){
return "SOCKS5 127.0.0.1:1080";
}
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment