Last active
December 10, 2020 00:49
-
-
Save goyuninfo/10e50ffa652d04ec9c14b7c80551b39e to your computer and use it in GitHub Desktop.
proxy.pac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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