Fix syntax for curl command checks in sb.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-09-09 17:46:04 +08:00
committed by GitHub
parent 3f5b84d542
commit a48edbb18c
+2 -2
View File
@@ -152,7 +152,7 @@ wgcfv4=$(curl -s4m5 https://www.cloudflare.com/cdn-cgi/trace -k | grep warp | cu
v6(){
v4orv6(){
if [ -z $(curl -s4m5 icanhazip.com -k) ]; then
if [ -z "$(curl -s4m5 icanhazip.com -k)" ]; then
echo
red "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
yellow "检测到 纯IPV6 VPS,添加NAT64"
@@ -161,7 +161,7 @@ ipv=prefer_ipv6
else
ipv=prefer_ipv4
fi
if [ -n $(curl -s6m5 icanhazip.com -k) ]; then
if [ -n "$(curl -s6m5 icanhazip.com -k)" ]; then
endip=2606:4700:d0::a29f:c001
else
endip=162.159.192.1