Skip to content

Commit

Permalink
fix tcp http bug err
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed Sep 9, 2024
1 parent 596efd5 commit 09fd2df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sing-box.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

args=$@
is_sh_ver=v1.03
is_sh_ver=v1.04

. /etc/sing-box/sh/src/init.sh
2 changes: 2 additions & 0 deletions src/core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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})
}
Expand Down

0 comments on commit 09fd2df

Please sign in to comment.