Created
September 29, 2015 13:12
-
-
Save mattseymour/231c6d3abce0bbc09b8c to your computer and use it in GitHub Desktop.
This file contains hidden or 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, ".localhost")) | |
return "DIRECT"; | |
if (url.substring(0, 6)=="https:") | |
return "DIRECT"; | |
return "PROXY 192.168.100.202:9999"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or a more simplified one :