File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
args=$@
4
- is_sh_ver=v1.02
4
+ is_sh_ver=v1.03
5
5
6
6
. /etc/sing-box/sh/src/init.sh
Original file line number Diff line number Diff line change @@ -923,7 +923,7 @@ add() {
923
923
fi
924
924
925
925
if [[ $is_use_tls ]]; then
926
- if [[ ! $is_no_auto_tls && ! $is_caddy && ! $is_gen ]]; then
926
+ if [[ ! $is_no_auto_tls && ! $is_caddy && ! $is_gen && ! $is_dont_test_host ]]; then
927
927
# test auto tls
928
928
[[ $( is_test port_used 80) || $( is_test port_used 443) ]] && {
929
929
get_port
@@ -1066,9 +1066,9 @@ get() {
1066
1066
is_config_name=$is_config_file
1067
1067
1068
1068
if [[ $is_caddy && $host && -f $is_caddy_conf /$host .conf ]]; then
1069
- tmp_tlsport =$( egrep -o " $host :[1-9][0-9]?+" $is_caddy_conf /$host .conf | sed s/.* ://)
1069
+ is_tmp_https_port =$( egrep -o " $host :[1-9][0-9]?+" $is_caddy_conf /$host .conf | sed s/.* ://)
1070
1070
fi
1071
- [[ $tmp_tlsport ]] && is_https_port=$tmp_tlsport
1071
+ [[ $is_tmp_https_port ]] && is_https_port=$is_tmp_https_port
1072
1072
[[ $is_client && $host ]] && port=$is_https_port
1073
1073
get protocol $is_protocol -$net_type
1074
1074
fi
@@ -1366,6 +1366,9 @@ info() {
1366
1366
fi
1367
1367
msg " $a $tt = \e[${is_color} m${is_info_str[$i]} \e[0m"
1368
1368
done
1369
+ if [[ $is_new_install ]]; then
1370
+ warn " 首次安装请查看脚本帮助文档: $( msg_ul https://233boy.com/$is_core /$is_core -script/) "
1371
+ fi
1369
1372
if [[ $is_url ]]; then
1370
1373
msg " ------------- ${info_list[12]} -------------"
1371
1374
msg " \e[4;${is_color} m${is_url} \e[0m"
You can’t perform that action at this time.
0 commit comments