feat(find best cdn ip): 修改ip选择不对问题
parent
052b7fd58d
commit
93c732f82a
|
@ -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
|
||||||
}
|
}
|
||||||
# 检查系统
|
# 检查系统
|
||||||
|
|
Loading…
Reference in New Issue