Skip to content

Instantly share code, notes, and snippets.

@lomadurov
Created June 8, 2018 11:10
Show Gist options
  • Select an option

  • Save lomadurov/c03d779d9f958215a18130cfe9622c91 to your computer and use it in GitHub Desktop.

Select an option

Save lomadurov/c03d779d9f958215a18130cfe9622c91 to your computer and use it in GitHub Desktop.
slack-proxy.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 127.0.0.1:8000; DIRECT";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment