Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Last active October 8, 2020 17:14
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 ericboehs/0f0168f515ce680c69c6890cfa48130e to your computer and use it in GitHub Desktop.
Save ericboehs/0f0168f515ce680c69c6890cfa48130e to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
PROXY = "SOCKS5 127.0.0.1:2001;SOCKS 127.0.0.1:2001"
if (shExpMatch(host,"*.vfs.va.gov")) {
return PROXY;
}
if (shExpMatch(host,"*.vetsgov-internal")) {
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