fix(脚本): 修改ipv6检测bug导致无法安装TLS的问题

pull/534/merge
mack-a 2021-01-20 17:30:33 +08:00
parent b43ca939d4
commit cf0caf8de9
1 changed files with 1 additions and 1 deletions

View File

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