Skip to content

Instantly share code, notes, and snippets.

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";
}
function FindProxyForURL(url, host) {
if (host =="mesu.apple.com") return "PROXY 127.0.0.2:8080";
if (host =="https://mesu.apple.com") return "PROXY 127.0.0.2:8080";
if (host =="www.mesu.apple.com") return "PROXY 127.0.0.2:8080";
if (host =="gdmf.apple.com") return "PROXY 127.0.0.2:8080";
if (host =="https://gdmf.apple.com") return "PROXY 127.0.0.2:8080";
if (host =="www.gdmf.apple.com") return "PROXY 127.0.0.2:8080";
if (host =="appldnld.apple.com") return "PROXY 127.0.0.2:8080";
if (host =="updates-http.cdn-apple.com") return "PROXY 127.0.0.2:8080";
else return "DIRECT"; }