Skip to content

Instantly share code, notes, and snippets.

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

Embed
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, "http://127.0.0.1:23119/*") ) {
return "DIRECT";
}
// localhost and google stuff should go to through socks proxy
if ((isPlainHostName(host) && shExpMatch(host, "localhost")) ||
(shExpMatch(url, "*127.0.0.1*")))
{
return "SOCKS 127.0.0.1:1080";
}
// 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.