-
-
Save phamquocbuu/0bfbf26c698681bd899cd7f527819c60 to your computer and use it in GitHub Desktop.
Example proxy.pac, using a SOCKS proxy for certain hosts.
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 useSocks = ["imgur.com"]; | |
for (var i= 0; i < useSocks.length; i++) { | |
if (shExpMatch(host, useSocks[i])) { | |
return "SOCKS localhost:9999"; | |
} | |
} | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment