Add maxhy2ports function to sb.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2026-04-11 15:42:31 +08:00
committed by GitHub
parent 6a7a5c2438
commit 6f1cb45f70
+10
View File
@@ -1198,6 +1198,15 @@ echo
}
sb_client(){
maxhy2ports(){
if [[ -n $hy2_ports ]]; then
cat <<EOF
"server_ports": [ "$hyps" ],
EOF
fi
}
sbany1(){
if [[ "$sbnh" != "1.10" ]]; then
echo "\"anytls-$hostname\","
@@ -1454,6 +1463,7 @@ cat <<EOF
"tag": "hy2-$hostname",
"server": "$cl_hy2_ip",
"server_port": $hy2_port,
$(maxhy2ports)
"password": "$uuid",
"tls": {
"enabled": true,