- Create a SOCK proxy to that server, if you're using SS, there will be a default sock proxy:
127.0.0.1:1086
- Go to System Preferences
- Select your network interface (most probably WIFI or Wired connection)
- Click on Advanced..
- Click on Proxies tab
- Select and check off Automatic Proxy Configuration
- Paste in this URL: https://raw.githubusercontent.com/morvencao/sock-proxy/master/slack-proxy.pac
- Apply the changes
Applying proxy.pac
configuration file hosted on Github on macOS
Note: The proxy.pac file must be served from http[s]. Local files don't work on recent macOS systems, since file:// URLs are sandboxed. Use Github :)
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.
// ssh -D 1086 [user]@[server]
return "SOCKS 127.0.0.1:1086; DIRECT";
}
return "DIRECT";
}
Here you go. Slack is working again. Enjoy!