Created
March 6, 2021 13:13
-
-
Save sfilyh/a52caf27f945ef572728969851837853 to your computer and use it in GitHub Desktop.
mac 切换代理脚本
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
| #!/bin/bash | |
| networksetup -setwebproxystate "Wi-Fi" off | |
| networksetup -setsecurewebproxystate "Wi-Fi" off | |
| networksetup -setautoproxyurl "Wi-Fi" http://pac25v2.test.upcdn.net/squid.pac | |
| echo '已启用局部代理!' |
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
| #!/bin/bash | |
| networksetup -setautoproxystate "Wi-Fi" off | |
| networksetup -setwebproxy "Wi-Fi" 127.0.0.1 1010 | |
| networksetup -setsecurewebproxy "Wi-Fi" 127.0.0.1 1010 | |
| echo '已启用全局代理' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment