File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ get_uuid() {
124124}
125125
126126get_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.
734734del () {
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
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33args=$@
4- is_sh_ver=v4.22
4+ is_sh_ver=v4.23
55
66. /etc/v2ray/sh/src/init.sh
You can’t perform that action at this time.
0 commit comments