Last active
February 2, 2020 12:02
-
-
Save Ara4Sh/cd9b677e34bd92e95dbf4989c12e93a0 to your computer and use it in GitHub Desktop.
slack-proxy.pac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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