Skip to content

Instantly share code, notes, and snippets.

@magic-lantern magic-lantern/proxy.pac
Last active Dec 13, 2018

What would you like to do?
Eureka Proxy.pac file for tunneling to App host
function FindProxyForURL(url, host) {
// the zotero service should only be local
if ( shExpMatch(url, "*") ) {
return "DIRECT";
// localhost and google stuff should go to through socks proxy
if ((isPlainHostName(host) && shExpMatch(host, "localhost")) ||
(shExpMatch(url, "**")))
return "SOCKS";
// everything else use outbound internet
return "DIRECT";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.