Update sb.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2026-04-06 18:06:36 +08:00
committed by GitHub
parent f857bb4f9c
commit ebd274276e
+1 -1
View File
@@ -3820,7 +3820,7 @@ if echo "$json"|grep -q '"versions"'; then
latcore=$(echo "$json"|grep -Eo '"[0-9.]+",'|head -n1|tr -d '",')
precore=$(echo "$json"|grep -Eo '"[0-9.]*-[^"]*"'|head -n1|tr -d '",')
else
page=$(curl -Ls https://github.com/SagerNet/sing-box/releases)
page=$(curl -Ls --max-time 3 https://github.com/SagerNet/sing-box/releases)
latcore=$(echo "$page"|grep -oE 'tag/v[0-9.]+'|head -n1|cut -d'v' -f2)
precore=$(echo "$page"|grep -oE '/tag/v[0-9.]+-[^"]+'|head -n1|cut -d'v' -f2)
fi