Skip to content

Commit 86bb946

Browse files
committed
del config dont get ip
1 parent 7270c1a commit 86bb946

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ check_status() {
198198
# dependent pkg install fail
199199
[[ ! -f $is_pkg_ok ]] && {
200200
msg err "安装依赖包失败"
201+
msg err "请尝试手动安装依赖包: $cmd update -y; $cmd install -y $pkg"
201202
is_fail=1
202203
}
203204

src/core.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ get_uuid() {
124124
}
125125

126126
get_ip() {
127-
[[ $ip || $is_no_auto_tls || $is_gen ]] && return
127+
[[ $ip || $is_no_auto_tls || $is_gen || $is_dont_get_ip ]] && return
128128
export "$(_wget -4 -qO- https://one.one.one.one/cdn-cgi/trace | grep ip=)" &>/dev/null
129129
[[ ! $ip ]] && export "$(_wget -6 -qO- https://one.one.one.one/cdn-cgi/trace | grep ip=)" &>/dev/null
130130
[[ ! $ip ]] && {
@@ -732,6 +732,8 @@ change() {
732732

733733
# delete config.
734734
del() {
735+
# dont get ip
736+
is_dont_get_ip=1
735737
[[ $is_conf_dir_empty ]] && return # not found any json file.
736738
# get a config file
737739
[[ ! $is_config_file ]] && get info $1
@@ -761,6 +763,7 @@ del() {
761763
warn "当前配置目录为空! 因为你刚刚删除了最后一个配置文件."
762764
is_conf_dir_empty=1
763765
fi
766+
unset is_dont_get_ip
764767
[[ $is_dont_auto_exit ]] && unset is_config_file
765768
}
766769

v2ray.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=v4.22
4+
is_sh_ver=v4.23
55

66
. /etc/v2ray/sh/src/init.sh

0 commit comments

Comments
 (0)