Skip to content

Instantly share code, notes, and snippets.

@pontus
Created September 2, 2019 13:34
Show Gist options
  • Save pontus/52a4c85316cc9dd478328d2b7d4f3ed1 to your computer and use it in GitHub Desktop.
Save pontus/52a4c85316cc9dd478328d2b7d4f3ed1 to your computer and use it in GitHub Desktop.
My proxy config
function FindProxyForURL(url, host) {
// our local URLs from the domains below example.com don't need a proxy:
if (dnsDomainIs(host,"matrix.uppmax.uu.se") ||
dnsDomainIs(host,"jira.uppmax.uu.se") ||
dnsDomainIs(host,"gitlab.uppmax.uu.se"))
{
return "DIRECT";
}
if (dnsDomainIs(host,"uppmax.uu.se"))
{
return "SOCKS5 127.0.0.1:1081;DIRECT";
}
if (dnsDomainIs(host,"swestore.se"))
{
return "SOCKS5 127.0.0.1:1081;DIRECT";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment