From e473454339775c7f05aa273dc8fab0a5906fcaff Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 4 Sep 2023 17:11:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=BD=93vps=E4=B8=8D=E6=94=AF=E6=8C=81IPv6=E6=97=B6=E6=A3=80?= =?UTF-8?q?=E6=9F=A5IP=E5=BC=82=E5=B8=B8=E6=8A=A5=E9=94=99=E3=80=81?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=AA=E6=80=A7=E5=8C=96=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E8=AF=86?= =?UTF-8?q?=E5=88=ABIP=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 7912b1d..4399ca0 100644 --- a/install.sh +++ b/install.sh @@ -503,7 +503,7 @@ getPublicIP() { if [[ -n "$1" ]]; then type=$1 fi - if [[ -n "${currentHost}" && -n "${currentRealityServerNames}" && "${currentRealityServerNames}" == "${currentHost}" ]]; then + if [[ -n "${currentHost}" && -n "${currentRealityServerNames}" && "${currentRealityServerNames}" == "${currentHost}" && -z "$1" ]]; then echo "${currentHost}" else local currentIP= @@ -1040,7 +1040,7 @@ checkDNSIP() { echoContent green " ---> 尝试检查域名 IPv6 地址" dnsIP=$(dig @2606:4700:4700::1111 +time=1 aaaa +short "${domain}") type=6 - if [[ -z "${dnsIP}" ]]; then + if echo "${dnsIP}" | grep -q "network unreachable" || [[ -z "${dnsIP}" ]]; then echoContent red " ---> 无法通过DNS获取域名IPv6地址,退出安装" exit 0 fi @@ -7891,7 +7891,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.10.15" + echoContent green "当前版本:v2.10.16" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus