-
-
Save iheanyi/9709d636dd6a5b72bed5e25a6cbde9a2 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:9998"; | |
// 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