From ca7c7bbb9aec7bc12609bc207006f46229f112c8 Mon Sep 17 00:00:00 2001 From: homemade Date: Sat, 20 Jan 2024 18:09:55 +0800 Subject: [PATCH] Added: out script --- out/sing-box-client/out | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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