From 09fd2df4ffa1602f8bd7579f7365b4120ff429cd Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:37:34 +0800 Subject: [PATCH] fix tcp http bug err --- sing-box.sh | 2 +- src/core.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sing-box.sh b/sing-box.sh index f5c6aab..eb7769a 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -1,6 +1,6 @@ #!/bin/bash args=$@ -is_sh_ver=v1.03 +is_sh_ver=v1.04 . /etc/sing-box/sh/src/init.sh \ No newline at end of file diff --git a/src/core.sh b/src/core.sh index 9a57c24..5ea9f83 100644 --- a/src/core.sh +++ b/src/core.sh @@ -443,6 +443,7 @@ change() { [[ $is_auto_get_config ]] && msg "\n自动选择: $is_config_file" } is_old_net=$net + [[ $is_tcp_http ]] && net=http [[ $host ]] && net=$is_protocol-$net-tls [[ $is_reality && $net_type =~ 'http' ]] && net=rh2 @@ -1290,6 +1291,7 @@ info() { [[ $net == "http" ]] && { net=tcp is_type=http + is_tcp_http=1 is_info_show+=(5) is_info_str=(${is_info_str[@]/http/tcp http}) }