Skip to content

Instantly share code, notes, and snippets.

@iheanyi
Forked from cainejette/SOCKS proxy
Created March 19, 2020 21:33
Show Gist options
  • Save iheanyi/a5e0597daba71b3a7db5b7230f43de7e to your computer and use it in GitHub Desktop.
Save iheanyi/a5e0597daba71b3a7db5b7230f43de7e to your computer and use it in GitHub Desktop.
SOCKS proxy
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