Update install.sh

修改DoH ipv6判断
pull/534/merge
mack-a 2021-03-09 12:32:16 +00:00 committed by GitHub
parent cd282dbb47
commit 9d06b3e449
1 changed files with 1 additions and 1 deletions

View File

@ -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