Created
April 8, 2019 13:56
-
-
Save patricksmms/77f9ba1ba509f6147c4ae29da3f6b382 to your computer and use it in GitHub Desktop.
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
// Important! | |
// In MacOS High Sierra Safari this this only works when the .pac file is placed | |
// on a web server, the file://localhost/etc/vpnconnect.pac only work for Chrome/Firefox | |
function FindProxyForURL(url, host) { | |
if (shExpMatch(host, "my.oracle.com") || | |
shExpMatch(host, "login.oracle.com") || | |
shExpMatch(host, "people.oracle.com") || | |
shExpMatch(host, "aria.oracle.com") || | |
shExpMatch(host, "*.us.oracle.com") || | |
shExpMatch(host, "*.oraclecorp.com") || | |
shExpMatch(host, "*.oraclecloud.com") || | |
shExpMatch(host, "*.oraclevpn.com")) || | |
shExpMatch(host, "*.oracle-ocna.com")) | |
{ | |
return "SOCKS5 localhost:8912; SOCKS localhost:8912; DIRECT;"; | |
} | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment