Skip to content

Instantly share code, notes, and snippets.

@krasnuydyx
Created October 10, 2016 09:48
Show Gist options
  • Save krasnuydyx/f64685d6f44264809d3bc8f8de997166 to your computer and use it in GitHub Desktop.
Save krasnuydyx/f64685d6f44264809d3bc8f8de997166 to your computer and use it in GitHub Desktop.
Auto proxy configuration for mac
function FindProxyForURL(url, host) {
PROXY = "PROXY 1.2.3.4"
// Apple.com via proxy
if (shExpMatch(host,"*.apple.com")) {
return PROXY;
}
// Everything else directly!
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment