Created
October 26, 2021 07:01
-
-
Save evmn/a1141d982a4850854542ec53b051e47e to your computer and use it in GitHub Desktop.
This file contains 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 proxy_off(){ | |
unset http_proxy | |
unset https_proxy | |
echo -e "已关闭代理" | |
} | |
function proxy_on() { | |
export no_proxy="localhost,127.0.0.1,192.168.1.1/24" | |
export http_proxy="http://127.0.0.1:8118" | |
export https_proxy=$http_proxy | |
echo -e "已开启代理" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment