Created
September 2, 2019 13:34
-
-
Save pontus/52a4c85316cc9dd478328d2b7d4f3ed1 to your computer and use it in GitHub Desktop.
My proxy config
This file contains 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
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