From c3d9724831c40ecb95813b46484ea36dd7a7a2d1 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:30:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=AE=89=E8=A3=85=E5=9B=A0=E4=B8=BA=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E8=AF=BB=E5=8F=96?= =?UTF-8?q?IP=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 56e89ec..bd670f0 100644 --- a/install.sh +++ b/install.sh @@ -503,7 +503,7 @@ getPublicIP() { if [[ -n "$1" ]]; then type=$1 fi - if [[ "${currentRealityServerNames}" == "${currentHost}" ]]; then + if [[ -n "${currentHost}" && -n "${currentRealityServerNames}" && "${currentRealityServerNames}" == "${currentHost}" ]]; then echo "${currentHost}" else local currentIP= @@ -7897,7 +7897,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.10.10" + echoContent green "当前版本:v2.10.11" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus