Skip to content

Instantly share code, notes, and snippets.

@darrenpmeyer
Last active May 28, 2021 06:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenpmeyer/335e8ebad85d4af263c56c523f1e66ac to your computer and use it in GitHub Desktop.
Save darrenpmeyer/335e8ebad85d4af263c56c523f1e66ac to your computer and use it in GitHub Desktop.
PAC file for I2P, Tor, etc. proxy configs
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, ".i2p")) { return "HTTP localhost:4444"; }
if (dnsDomainIs(host, ".onion")) { return "SOCKS localhost:9050"; }
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment