1 Commits
v1.03 ... v1.04

Author SHA1 Message Date
233boy
09fd2df4ff fix tcp http bug err 2024-09-09 14:37:34 +08:00
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -443,6 +443,7 @@ change() {
[[ $is_auto_get_config ]] && msg "\n自动选择: $is_config_file" [[ $is_auto_get_config ]] && msg "\n自动选择: $is_config_file"
} }
is_old_net=$net is_old_net=$net
[[ $is_tcp_http ]] && net=http
[[ $host ]] && net=$is_protocol-$net-tls [[ $host ]] && net=$is_protocol-$net-tls
[[ $is_reality && $net_type =~ 'http' ]] && net=rh2 [[ $is_reality && $net_type =~ 'http' ]] && net=rh2
@@ -1290,6 +1291,7 @@ info() {
[[ $net == "http" ]] && { [[ $net == "http" ]] && {
net=tcp net=tcp
is_type=http is_type=http
is_tcp_http=1
is_info_show+=(5) is_info_show+=(5)
is_info_str=(${is_info_str[@]/http/tcp http}) is_info_str=(${is_info_str[@]/http/tcp http})
} }