mirror of
https://github.com/233boy/sing-box.git
synced 2026-05-03 06:14:41 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9cf5655ac5 | ||
|
|
3909d2edaf |
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
args=$@
|
||||
is_sh_ver=v1.05
|
||||
is_sh_ver=v1.07
|
||||
|
||||
. /etc/sing-box/sh/src/init.sh
|
||||
12
src/core.sh
12
src/core.sh
@@ -369,7 +369,7 @@ create() {
|
||||
else
|
||||
[[ ! $is_ntp_on ]] && is_ntp=
|
||||
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}" <<<{})
|
||||
cat <<<$is_server_config_json >$is_config_json
|
||||
manage restart &
|
||||
@@ -1094,6 +1094,8 @@ get() {
|
||||
tuic*)
|
||||
net=tuic
|
||||
is_protocol=$net
|
||||
[[ ! $password ]] && password=$uuid
|
||||
is_users="users:[{uuid:\"$uuid\",password:\"$password\"}]"
|
||||
json_str="$is_users,congestion_control:\"bbr\",$is_tls_json"
|
||||
;;
|
||||
trojan*)
|
||||
@@ -1329,10 +1331,10 @@ info() {
|
||||
;;
|
||||
tuic)
|
||||
is_insecure=1
|
||||
is_can_change=(0 1 5)
|
||||
is_info_show=(0 1 2 3 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_info_str=($is_protocol $is_addr $port $uuid tls h3 true bbr)
|
||||
is_can_change=(0 1 4 5)
|
||||
is_info_show=(0 1 2 3 10 8 9 20 21)
|
||||
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 $password tls h3 true bbr)
|
||||
;;
|
||||
reality)
|
||||
is_color=41
|
||||
|
||||
Reference in New Issue
Block a user