From cf0caf8de9446717364ca4eb578da7dd8b3a0672 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Wed, 20 Jan 2021 17:30:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9ip?= =?UTF-8?q?v6=E6=A3=80=E6=B5=8Bbug=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=AE=89=E8=A3=85TLS=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ea5f12a..62f41f1 100644 --- a/install.sh +++ b/install.sh @@ -539,7 +539,7 @@ EOF checkIP() { echoContent skyBlue " ---> 检查ipv4中" pingIP=$(ping -c 1 -W 1000 ${domain} | sed '1{s/[^(]*(//;s/).*//;q;}') - if [[ -z "${pingIP}" ]]; then + if [[ -z $(echo "${pingIP}" | awk -F "[.]" '{print $4}') ]]; then echoContent skyBlue " ---> 检查ipv6中" pingIP=$(ping6 -c 1 ${domain} | sed '1{s/[^(]*(//;s/).*//;q;}') pingIPv6=${pingIP}