Skip to content

Instantly share code, notes, and snippets.

View cainejette's full-sized avatar

Caine Jette cainejette

View GitHub Profile
@cainejette
cainejette / SOCKS proxy
Created December 11, 2019 19:44
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";
}