diff --git a/out/sing-box-client/out b/out/sing-box-client/out index b041eaa..7d287d7 100755 --- a/out/sing-box-client/out +++ b/out/sing-box-client/out @@ -1,6 +1,12 @@ #!/bin/bash -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 +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