Skip to content

Instantly share code, notes, and snippets.

@dmitrysarov
Last active July 3, 2020 19:05
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 dmitrysarov/25c62d7289537d60187d79c0bfb3ce75 to your computer and use it in GitHub Desktop.
Save dmitrysarov/25c62d7289537d60187d79c0bfb3ce75 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
PROXY = "PROXY 10.211.55.4:3128"
// Apple.com via proxy
if (shExpMatch(host,"*philips.com*")) {
return PROXY;
}
if (shExpMatch(host,"https://confluence.atlas.philips.com")) {
return PROXY;
}
if (shExpMatch(host,"130.*")) {
return PROXY;
}
// Everything else directly!
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment