Skip to content

Instantly share code, notes, and snippets.

@adrienmo
Last active November 10, 2020 02:56
Show Gist options
  • Save adrienmo/3ee0df830e48bb4dcfaaaf1341b10a8b to your computer and use it in GitHub Desktop.
Save adrienmo/3ee0df830e48bb4dcfaaaf1341b10a8b to your computer and use it in GitHub Desktop.
proxy.pac
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.nash.io"))
{
return "SOCKS5 127.0.0.1:1086; SOCKS 127.0.0.1:1086; DIRECT;";
}
if (isInNet(host, "35.202.187.127", "255.255.255.255"))
{
return "SOCKS5 127.0.0.1:1086; SOCKS 127.0.0.1:1086; DIRECT;";
}
return "DIRECT;";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment