From 68d724f78da531fe249569774293d85644e8fd20 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: Tue, 4 Mar 2025 10:39:57 +0800 Subject: [PATCH] Update sb.sh --- sb.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sb.sh b/sb.sh index 0809ad5..cd42560 100644 --- a/sb.sh +++ b/sb.sh @@ -4909,10 +4909,12 @@ if [[ -n $(ps -e | grep sbwpph) ]]; then kill -15 $(cat /etc/s-box/sbwpphid.log 2>/dev/null) >/dev/null 2>&1 fi v4v6 -if [[ -z $v4 ]]; then +if [[ -n $v4 ]]; then +sw46=4 +else red "IPV4不存在,确保安装过WARP-IPV4模式" -fi -[[ -n $v6 ]] && sw46=6 || sw46=4 +sw46=6 +fi echo readp "设置WARP-plus-Socks5端口(回车跳过端口默认40000):" port if [[ -z $port ]]; then