From 9d06b3e4490f80dd8c039b20e24c6940bfc84d8b Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Tue, 9 Mar 2021 12:32:16 +0000 Subject: [PATCH] Update install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改DoH ipv6判断 --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index fa02a61..d35bcc7 100644 --- a/install.sh +++ b/install.sh @@ -543,7 +543,7 @@ checkIP() { 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|.[]|select(.type==1)|.data") + pingIP=$(curl -s -H 'accept:application/dns-json' 'https://cloudflare-dns.com/dns-query?name='${domain}'&type=AAAA' | jq -r ".Answer|.[]|select(.type==28)|.data") pingIPv6=${pingIP} fi