From fb3641dfafd4e4b3dc2ce5b7b81e780698af8cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Thu, 12 Mar 2026 08:37:23 +0800 Subject: [PATCH] Update sb.sh --- sb.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sb.sh b/sb.sh index a0d216a..c56547a 100644 --- a/sb.sh +++ b/sb.sh @@ -3100,7 +3100,7 @@ green "订阅链接路径密码:$(cat /etc/s-box/subtoken.log 2>/dev/null)" } subportipsub(){ echo -readp "输入未被占用的订阅链接端口(回车表示随机端口):" menu +readp "输入未被占用且可用的订阅链接端口(回车表示随机端口):" menu if [ -z "$menu" ]; then subport=$(shuf -i 10000-65535 -n 1) else @@ -3111,8 +3111,8 @@ green "订阅链接端口:$(cat /etc/s-box/subport.log 2>/dev/null)" } echo yellow "1:重置安装本地IP订阅链接" -yellow "2:仅重置订阅链接路径密码" -yellow "3:仅重置订阅链接端口" +yellow "2:更换订阅链接路径密码" +yellow "3:更换订阅链接端口" yellow "4:卸载本地IP订阅链接" yellow "0:返回上层" readp "请选择【0-4】:" menu @@ -3133,6 +3133,7 @@ green "本地IP订阅链接已卸载完成" && sleep 3 && sb else changeserv fi +echo green "请稍后…………" kill -15 $(cat /etc/s-box/subcmsbid.log 2>/dev/null) >/dev/null 2>&1 mkdir -p /root/web/"$(cat /etc/s-box/subtoken.log 2>/dev/null)"