-
-
Save iheanyi/a5e0597daba71b3a7db5b7230f43de7e to your computer and use it in GitHub Desktop.
SOCKS proxy
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) { | |
if (isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0")) | |
return "SOCKS 127.0.0.1:9999"; | |
// Default to using no proxy. | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment