feat(find best cdn ip): 修改ip选择不对问题

pull/534/merge
mack-a 2020-08-12 17:29:53 +08:00
parent 052b7fd58d
commit 93c732f82a
1 changed files with 3 additions and 2 deletions

View File

@ -123,8 +123,9 @@ findIPList(){
echoContent red '输入有误请重新输入!' echoContent red '输入有误请重新输入!'
findIPList $1 findIPList $1
fi fi
echo ${country}
eval $(cat /tmp/ips|grep -v grep|grep ${country}|awk -F "[|]" '{print $2}'|awk '{split($0,serverNameList," ");for(i in serverNameList) print "ip["i"]="serverNameList[i]}') # cat /tmp/ips|grep -v grep|grep 中国移动|awk -F "[|]" '{print NR"-"$2}'|grep 174-|head -1 |awk -F "[|]" '{print $2}'
eval $(cat /tmp/ips|grep -v grep|grep ${country}|awk -F "[|]" '{print NR"-"$2}'|grep ${selectType}-|head -1|awk -F "[-]" '{print $2}'|awk '{split($0,serverNameList," ");for(i in serverNameList) print "ip["i"]="serverNameList[i]}')
pingTool pingTool
} }
# 检查系统 # 检查系统