function proxy_on(){
export ALL_PROXY=socks5://127.0.0.1:10808
export http_proxy=127.0.0.1:10809
export https_proxy=127.0.0.1:10809
echo -e "Proxy enabled"
}
# disable proxy
function proxy_off(){
unset ALL_PROXY
unset http_proxy
unset https_proxy
echo -e "Proxy disabled"
}
# Execute proxy_off, default is off, can be default on
proxy_on
暂无评论。