Skip to content

Instantly share code, notes, and snippets.

@mabahamo
Created March 25, 2014 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mabahamo/9768730 to your computer and use it in GitHub Desktop.
Save mabahamo/9768730 to your computer and use it in GitHub Desktop.
Proxy autoconfiguration file
function FindProxyForURL(url, host) {
if(shExpMatch(host,"192.168.*")) {return "DIRECT"; }
if(shExpMatch(host,"localhost")) {return "DIRECT"; }
if(shExpMatch(host,"127.0.0.1")) {return "DIRECT"; }
if(shExpMatch(url,"http://*")) { return "PROXY 192.168.15.119:3128";}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment