File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ check_status() {
198
198
# dependent pkg install fail
199
199
[[ ! -f $is_pkg_ok ]] && {
200
200
msg err " 安装依赖包失败"
201
+ msg err " 请尝试手动安装依赖包: $cmd update -y; $cmd install -y $pkg "
201
202
is_fail=1
202
203
}
203
204
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ get_uuid() {
124
124
}
125
125
126
126
get_ip () {
127
- [[ $ip || $is_no_auto_tls || $is_gen ]] && return
127
+ [[ $ip || $is_no_auto_tls || $is_gen || $is_dont_get_ip ]] && return
128
128
export " $( _wget -4 -qO- https://one.one.one.one/cdn-cgi/trace | grep ip=) " & > /dev/null
129
129
[[ ! $ip ]] && export " $( _wget -6 -qO- https://one.one.one.one/cdn-cgi/trace | grep ip=) " & > /dev/null
130
130
[[ ! $ip ]] && {
@@ -732,6 +732,8 @@ change() {
732
732
733
733
# delete config.
734
734
del () {
735
+ # dont get ip
736
+ is_dont_get_ip=1
735
737
[[ $is_conf_dir_empty ]] && return # not found any json file.
736
738
# get a config file
737
739
[[ ! $is_config_file ]] && get info $1
@@ -761,6 +763,7 @@ del() {
761
763
warn " 当前配置目录为空! 因为你刚刚删除了最后一个配置文件."
762
764
is_conf_dir_empty=1
763
765
fi
766
+ unset is_dont_get_ip
764
767
[[ $is_dont_auto_exit ]] && unset is_config_file
765
768
}
766
769
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
args=$@
4
- is_sh_ver=v4.22
4
+ is_sh_ver=v4.23
5
5
6
6
. /etc/v2ray/sh/src/init.sh
You can’t perform that action at this time.
0 commit comments