Skip to content

Instantly share code, notes, and snippets.

@bedefaced
Created February 1, 2016 20:52
Show Gist options
  • Save bedefaced/371d856203dddf0c5121 to your computer and use it in GitHub Desktop.
Save bedefaced/371d856203dddf0c5121 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, ".i2p")) {
return "PROXY 127.0.0.1:4444";
} else {
return "SOCKS5 127.0.0.1:9150";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment