Update sb.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-08-01 08:37:09 +08:00
committed by GitHub
parent bdd8e1cb2c
commit cc7d2c4284
+6 -3
View File
@@ -156,14 +156,17 @@ v4orv6(){
if [ -z $(curl -s4m5 icanhazip.com -k) ]; then if [ -z $(curl -s4m5 icanhazip.com -k) ]; then
echo echo
red "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" red "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
yellow "检测到 纯IPV6 VPS,添加DNS64" yellow "检测到 纯IPV6 VPS,添加NAT64"
echo -e "nameserver 2a00:1098:2b::1\nnameserver 2a00:1098:2c::1\nnameserver 2a01:4f8:c2c:123f::1" > /etc/resolv.conf echo -e "nameserver 2a00:1098:2b::1\nnameserver 2a00:1098:2c::1\nnameserver 2a01:4f8:c2c:123f::1" > /etc/resolv.conf
endip=2606:4700:d0::a29f:c101
ipv=prefer_ipv6 ipv=prefer_ipv6
else else
endip=162.159.192.1
ipv=prefer_ipv4 ipv=prefer_ipv4
fi fi
if [ -n $(curl -s6m5 icanhazip.com -k) ]; then
endip=2606:4700:d0::a29f:c101
else
endip=162.159.192.1
fi
} }
warpcheck warpcheck
if [[ ! $wgcfv4 =~ on|plus && ! $wgcfv6 =~ on|plus ]]; then if [[ ! $wgcfv4 =~ on|plus && ! $wgcfv6 =~ on|plus ]]; then