Skip to content

Instantly share code, notes, and snippets.

@ivans825
Created February 20, 2020 01:35
Show Gist options
  • Save ivans825/bd35b625baa72c02509ace2878493165 to your computer and use it in GitHub Desktop.
Save ivans825/bd35b625baa72c02509ace2878493165 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host)
{
if (dnsDomainIs(host, "mesu.apple.com")||dnsDomainIs(host, "www.apple.com")||dnsDomainIs(host, ".apple.com")||(host =="mesu.apple.com")||(host =="appldnld.apple.com")||dnsDomainIs(host, "yahoo.com"))
{
return "PROXY 127.0.0.1:8080";
}
else
{
return "DIRECT";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment