Last active
October 6, 2023 03:13
-
-
Save nhdinh/8d3e12cf18d659a238f826c144321c3d to your computer and use it in GitHub Desktop.
PAC Script
This file contains hidden or 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
function FindProxyForURL(url, host) { | |
// our local URLs from the domains below example.com don't need a proxy: | |
if (shExpMatch(host, "*..apartmentlist.me")) { | |
return "PROXY forward.test.io:3128"; | |
} | |
// URLs within this network are accessed through | |
// port 8080 on fastproxy.example.com: | |
// if (isInNet(host, "10.0.0.0", "255.255.248.0")) { | |
// return "PROXY fastproxy.example.com:8080"; | |
// } | |
// All other requests go through port 8080 of proxy.example.com. | |
// should that fail to respond, go directly to the WWW: | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment