Skip to content

Instantly share code, notes, and snippets.

@Ara4Sh
Last active February 2, 2020 12:02
Show Gist options
  • Select an option

  • Save Ara4Sh/cd9b677e34bd92e95dbf4989c12e93a0 to your computer and use it in GitHub Desktop.

Select an option

Save Ara4Sh/cd9b677e34bd92e95dbf4989c12e93a0 to your computer and use it in GitHub Desktop.
slack-proxy.pac
function FindProxyForURL(url, host) {
if (shExpMatch(host, "slack.com") ||
shExpMatch(host, "*.slack.com") ||
shExpMatch(host, "*.slack-msgs.com") ||
shExpMatch(host, "*.slack-files.com") ||
shExpMatch(host, "*.slack-imgs.com") ||
shExpMatch(host, "*.slack-edge.com") ||
shExpMatch(host, "*.slack-core.com") ||
shExpMatch(host, "*.slack-redir.net")) {
// Use SOCK proxy, or fall back to a DIRECT traffic.
return "SOCKS 127.0.0.1:1080; DIRECT";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment