Skip to content

Instantly share code, notes, and snippets.

@ibratoev
Last active June 12, 2019 16:19
Show Gist options
  • Save ibratoev/8302c7068cd5ca3fd99b3a98dc1793ce to your computer and use it in GitHub Desktop.
Save ibratoev/8302c7068cd5ca3fd99b3a98dc1793ce to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
PROXY = "PROXY 192.168.6.35:808"
if (shExpMatch(host,"*.demandware.net")) {
return PROXY;
}
if (shExpMatch(host,"*.demandware.com")) {
return PROXY;
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment