Skip to content

Instantly share code, notes, and snippets.

@JasonRammoray
Created May 16, 2018 09:59
Show Gist options
  • Save JasonRammoray/a3fd301dc26fc7d48ef69bf1e878cdab to your computer and use it in GitHub Desktop.
Save JasonRammoray/a3fd301dc26fc7d48ef69bf1e878cdab to your computer and use it in GitHub Desktop.
slack-sock-pac
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.slack-msgs.com")) {
// Use SOCK proxy,
// or fall back to a DIRECT traffic.
// ssh -D 8000 [user]@[server]
return "SOCKS 83.174.203.210:1080; DIRECT";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment