Skip to content

Commit 09fd2df

Browse files
committed
fix tcp http bug err
1 parent 596efd5 commit 09fd2df

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sing-box.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
args=$@
4-
is_sh_ver=v1.03
4+
is_sh_ver=v1.04
55

66
. /etc/sing-box/sh/src/init.sh

src/core.sh

+2
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ change() {
443443
[[ $is_auto_get_config ]] && msg "\n自动选择: $is_config_file"
444444
}
445445
is_old_net=$net
446+
[[ $is_tcp_http ]] && net=http
446447
[[ $host ]] && net=$is_protocol-$net-tls
447448
[[ $is_reality && $net_type =~ 'http' ]] && net=rh2
448449

@@ -1290,6 +1291,7 @@ info() {
12901291
[[ $net == "http" ]] && {
12911292
net=tcp
12921293
is_type=http
1294+
is_tcp_http=1
12931295
is_info_show+=(5)
12941296
is_info_str=(${is_info_str[@]/http/tcp http})
12951297
}

0 commit comments

Comments
 (0)