2 Commits
v1.05 ... v1.07

Author SHA1 Message Date
233boy
9cf5655ac5 remove block 2025-04-24 12:52:13 +08:00
233boy
3909d2edaf tuic add password args 2025-04-16 11:21:19 +08:00
2 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
args=$@ args=$@
is_sh_ver=v1.05 is_sh_ver=v1.07
. /etc/sing-box/sh/src/init.sh . /etc/sing-box/sh/src/init.sh

View File

@@ -369,7 +369,7 @@ create() {
else else
[[ ! $is_ntp_on ]] && is_ntp= [[ ! $is_ntp_on ]] && is_ntp=
fi fi
is_outbounds='outbounds:[{tag:"direct",type:"direct"},{tag:"block",type:"block"}]' is_outbounds='outbounds:[{tag:"direct",type:"direct"}]'
is_server_config_json=$(jq "{$is_log,$is_dns,$is_ntp$is_outbounds}" <<<{}) is_server_config_json=$(jq "{$is_log,$is_dns,$is_ntp$is_outbounds}" <<<{})
cat <<<$is_server_config_json >$is_config_json cat <<<$is_server_config_json >$is_config_json
manage restart & manage restart &
@@ -1094,6 +1094,8 @@ get() {
tuic*) tuic*)
net=tuic net=tuic
is_protocol=$net is_protocol=$net
[[ ! $password ]] && password=$uuid
is_users="users:[{uuid:\"$uuid\",password:\"$password\"}]"
json_str="$is_users,congestion_control:\"bbr\",$is_tls_json" json_str="$is_users,congestion_control:\"bbr\",$is_tls_json"
;; ;;
trojan*) trojan*)
@@ -1329,10 +1331,10 @@ info() {
;; ;;
tuic) tuic)
is_insecure=1 is_insecure=1
is_can_change=(0 1 5) is_can_change=(0 1 4 5)
is_info_show=(0 1 2 3 8 9 20 21) is_info_show=(0 1 2 3 10 8 9 20 21)
is_url="$is_protocol://$uuid:@$is_addr:$port?alpn=h3&allow_insecure=1&congestion_control=bbr#233boy-$net-$is_addr" is_url="$is_protocol://$uuid:$password@$is_addr:$port?alpn=h3&allow_insecure=1&congestion_control=bbr#233boy-$net-$is_addr"
is_info_str=($is_protocol $is_addr $port $uuid tls h3 true bbr) is_info_str=($is_protocol $is_addr $port $uuid $password tls h3 true bbr)
;; ;;
reality) reality)
is_color=41 is_color=41