Skip to content

Instantly share code, notes, and snippets.

@ivans825
Created February 20, 2020 18:49
Show Gist options
  • Save ivans825/5ed89107f51ce5806d3695e66b353dd3 to your computer and use it in GitHub Desktop.
Save ivans825/5ed89107f51ce5806d3695e66b353dd3 to your computer and use it in GitHub Desktop.
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"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment