Closed ultwcz closed 2 months ago
File changed:注释掉部分脚本代码
diff --git a/start.sh b/start.sh index d11dcb4..81dffec 100644 --- a/start.sh +++ b/start.sh @@ -184,30 +184,30 @@ echo -e "Secret: ${Secret}" echo '' # 添加环境变量(root权限) -cat>/etc/profile.d/clash.sh<<EOF -# 开启系统代理 -function proxy_on() { - export http_proxy=http://127.0.0.1:7890 - export https_proxy=http://127.0.0.1:7890 - export no_proxy=127.0.0.1,localhost - export HTTP_PROXY=http://127.0.0.1:7890 - export HTTPS_PROXY=http://127.0.0.1:7890 - export NO_PROXY=127.0.0.1,localhost - echo -e "\033[32m[√] 已开启代理\033[0m" -} - -# 关闭系统代理 -function proxy_off(){ - unset http_proxy - unset https_proxy - unset no_proxy - unset HTTP_PROXY - unset HTTPS_PROXY - unset NO_PROXY - echo -e "\033[31m[×] 已关闭代理\033[0m" -} -EOF - -echo -e "请执行以下命令加载环境变量: source /etc/profile.d/clash.sh\n" -echo -e "请执行以下命令开启系统代理: proxy_on\n" -echo -e "若要临时关闭系统代理,请执行: proxy_off\n" +# cat>/etc/profile.d/clash.sh<<EOF +# # 开启系统代理 +# function proxy_on() { +# export http_proxy=http://127.0.0.1:7890 +# export https_proxy=http://127.0.0.1:7890 +# export no_proxy=127.0.0.1,localhost +# export HTTP_PROXY=http://127.0.0.1:7890 +# export HTTPS_PROXY=http://127.0.0.1:7890 +# export NO_PROXY=127.0.0.1,localhost +# echo -e "\033[32m[√] 已开启代理\033[0m" +# } +# +# # 关闭系统代理 +# function proxy_off(){ +# unset http_proxy +# unset https_proxy +# unset no_proxy +# unset HTTP_PROXY +# unset HTTPS_PROXY +# unset NO_PROXY +# echo -e "\033[31m[×] 已关闭代理\033[0m" +# } +# EOF + +# echo -e "请执行以下命令加载环境变量: source /etc/profile.d/clash.sh\n" +# echo -e "请执行以下命令开启系统代理: proxy_on\n" +# echo -e "若要临时关闭系统代理,请执行: proxy_off\n"
在浏览器设置中搜索代理(proxy),使用Manual proxy configuration HTTP Proxy: 127.0.0.1 7890 Also use this proxy for HTTPS No proxy for: 127.0.0.1,localhost 点击OK
File changed:注释掉部分脚本代码
在浏览器设置中搜索代理(proxy),使用Manual proxy configuration HTTP Proxy: 127.0.0.1 7890 Also use this proxy for HTTPS No proxy for: 127.0.0.1,localhost 点击OK