Skip to content

Instantly share code, notes, and snippets.

@goyuninfo
Last active December 10, 2020 00:49
Show Gist options
  • Save goyuninfo/10e50ffa652d04ec9c14b7c80551b39e to your computer and use it in GitHub Desktop.
Save goyuninfo/10e50ffa652d04ec9c14b7c80551b39e to your computer and use it in GitHub Desktop.
proxy.pac
function FindProxyForURL(url, host) {
var useSocks1080 = ["jenkins"];
var useSocksAzure = ["canadacentral.cloudapp.azure.com:3389"];
for (var i= 0; i < useSocksAzure.length; i++) {
if (shExpMatch(host, useSocksAzure[i])) {
return "SOCKS useSocksAzure:51080";
}
}
for (var i= 0; i < useSocks1080.length; i++) {
if (shExpMatch(host, useSocks1080[i])) {
return "SOCKS localhost:1080";
}
}
return "DIRECT";
//return "SOCKS localhost:1088";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment