Skip to content

Instantly share code, notes, and snippets.

@chan-vince
Last active January 20, 2021 11:37
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 chan-vince/562fb6e057f76316a59dd0619df76949 to your computer and use it in GitHub Desktop.
Save chan-vince/562fb6e057f76316a59dd0619df76949 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
proxy = "SOCKS 127.0.0.1:9999;SOCKS5 127.0.0.1:9999"
if (isInNet(host, "10.99.99.0", "255.255.255.0") ||
(shExpMatch(host, "confluence.mclaren.com")) ||
(shExpMatch(host, "vhmclpe1cs.mcl.rot.hec.sap.biz")) ||
(shExpMatch(host, "simstash.mat.tagmclarengroup.com"))) {
return proxy;
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment