Last active
July 9, 2018 07:52
-
-
Save louisje/d0548094c5aaacb736bd18e7240cfa49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
if (dnsDomainIs(host, ".i2p")) { | |
if (url.substring(0, 6) == 'https:') { | |
return "PROXY localhost:4445"; | |
} else { | |
return "PROXY localhost:4444"; | |
} | |
} else { | |
return "DIRECT"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment