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/9709d636dd6a5b72bed5e25a6cbde9a2 to your computer and use it in GitHub Desktop.
Save iheanyi/9709d636dd6a5b72bed5e25a6cbde9a2 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: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