Skip to content

Instantly share code, notes, and snippets.

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";
}