From 5f25285d7303c66e9c500304cb6885cb1a224801 Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Sun, 31 Mar 2024 14:46:56 +0800 Subject: [PATCH] Update Nimble.sh --- Nimble.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Nimble.sh b/Nimble.sh index 3493ab3..c743bb0 100644 --- a/Nimble.sh +++ b/Nimble.sh @@ -8,6 +8,18 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi +# 导入Socks5代理 +# Import Socks5 proxy +read -p "请输入Socks5代理地址 (格式为 host:port),如不需要代理请留空: /Please enter the Socks5 proxy address (format host:port), leave blank if no proxy is needed: " proxy + +if [ ! -z "$proxy" ]; then + export http_proxy=socks5://$proxy + export https_proxy=socks5://$proxy + echo "已设置Socks5代理为: $proxy /Socks5 proxy is set to: $proxy" +else + echo "未设置代理 /No proxy set" +fi + # 节点安装功能 # Node installation function function install_node() {