Added: out script

This commit is contained in:
homemade 2024-01-20 18:09:55 +08:00
parent 4e5a6c5816
commit ca7c7bbb9a
1 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,12 @@
#!/bin/bash
if [ $# -eq 0 ] || [ "$1" == "start" ]; then
export https_proxy=http://127.0.0.1:3446
export http_proxy=http://127.0.0.1:3446
export all_proxy=socks5://127.0.0.1:3446
elif [ "$1" == "stop" ]; then
unset https_proxy
unset http_proxy
unset all_proxy
fi