From cd282dbb47ac4ff50a5046694af3c096b2a9a520 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Tue, 9 Mar 2021 17:18:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A3=80=E6=B5=8Bip=E6=97=B6=E7=9A=84=E8=A7=84=E5=88=99?= =?UTF-8?q?=E3=80=81=E6=B7=BB=E5=8A=A0CDN=E8=87=AA=E9=80=89=E8=8A=82?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index ade3c96..fa02a61 100644 --- a/install.sh +++ b/install.sh @@ -539,11 +539,11 @@ EOF # 检查ip checkIP() { echoContent skyBlue " ---> 检查ipv4中" - local pingIP=$(curl -s -H 'accept:application/dns-json' 'https://cloudflare-dns.com/dns-query?name='${domain}'&type=A' | jq -r .Answer[0].data) + local pingIP=$(curl -s -H 'accept:application/dns-json' 'https://cloudflare-dns.com/dns-query?name='${domain}'&type=A' | jq -r ".Answer|.[]|select(.type==1)|.data") if [[ -z "${pingIP}" ]]; then echoContent skyBlue " ---> 检查ipv6中" - pingIP=$(curl -s -H 'accept:application/dns-json' 'https://cloudflare-dns.com/dns-query?name='${domain}'&type=AAAA' | jq -r .Answer[0].data) + pingIP=$(curl -s -H 'accept:application/dns-json' 'https://cloudflare-dns.com/dns-query?name='${domain}'&type=AAAA' | jq -r ".Answer|.[]|select(.type==1)|.data") pingIPv6=${pingIP} fi @@ -2230,7 +2230,7 @@ updateV2RayCDN() { echoContent red "==============================================================" echoContent yellow "1.CNAME www.digitalocean.com" echoContent yellow "2.CNAME www.cloudflare.com" - echoContent yellow "3.CNAME www.cloudflare.com" + echoContent yellow "3.CNAME hostmonit.com" echoContent yellow "4.手动输入" echoContent red "==============================================================" read -r -p "请选择:" selectCDNType @@ -2242,7 +2242,7 @@ updateV2RayCDN() { setDomain="www.cloudflare.com" ;; 3) - setDomain="www.cloudflare.com" + setDomain="hostmonit.com" ;; 4) read -r -p "请输入想要自定义CDN IP或者域名:" setDomain @@ -3353,7 +3353,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.3.29" + echoContent green "当前版本:v2.3.30" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:七合一共存脚本" echoContent red "=============================================================="