Skip to content

Instantly share code, notes, and snippets.

@denji
Created March 23, 2014 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denji/9731024 to your computer and use it in GitHub Desktop.
Save denji/9731024 to your computer and use it in GitHub Desktop.
Demo proxy for Mac Developer
function FindProxyForURL(url, host)
{
if ((host == "localhost") ||
(shExpMatch(host, "localhost.*")) ||
(host == "127.0.0.1")) {
return "DIRECT";
}
if (dnsDomainIs(host, ".dev")) {
return "PROXY localhost";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment