Skip to content

Instantly share code, notes, and snippets.

@shikhalev
Last active November 2, 2017 18:59
Show Gist options
  • Save shikhalev/2251d1b28c55f3bc8b44 to your computer and use it in GitHub Desktop.
Save shikhalev/2251d1b28c55f3bc8b44 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 "DIRECT";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment