Skip to content

Instantly share code, notes, and snippets.

@patricksmms
Created April 8, 2019 13:56
Show Gist options
  • Save patricksmms/77f9ba1ba509f6147c4ae29da3f6b382 to your computer and use it in GitHub Desktop.
Save patricksmms/77f9ba1ba509f6147c4ae29da3f6b382 to your computer and use it in GitHub Desktop.
// 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