-
-
Save jau88/aa23d8395d5aedbc80bd51fe773d56ae to your computer and use it in GitHub Desktop.
pac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PROXY_DIRECT="DIRECT";var DIRECT="DIRECT";var BLACK="PROXY 127.0.0.1:8021";var WHITE=PROXY_DIRECT;function s(u,r){return shExpMatch(u,r);}function d(h,r){return dnsDomainIs(h,r);}function n(h,r,m){return isInNet(h,r,m);}function e(u){var h;if(u.indexOf("://")>-1){h=u.split('/')[2];}else{h=u.split('/')[0];}h=h.split(':')[0];var s=h.split('.').reverse();return s;}function FindProxyForURL(url,host){var u=url.toLowerCase();var h=host.toLowerCase();var a=e(u);var b=a[0];var c=a[1];var f=c.length;var t=c[f-1];var z=c[f-2];if((s(u,"*.ocsp.int\u005cu002dx3.letsencrypt.org")||s(u,"*ocsp.apple.com")||s(u,"*.world\u005cu002dgen.g.aaplimg.com")||s(u,"*.mesu.apple.com")||s(u,"*.gdmf.apple.com")||s(u,"*.ppq.apple.com"))){return BLACK;}return PROXY_DIRECT;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment