~修复指定本机host时报错的bug
~新手引导说明调整及bug修复
~修复跳过证书验证功能相关bug
~修复检测配置文件节点相关bug
This commit is contained in:
juewuy
2021-05-29 16:50:55 +08:00
parent 80c2a551d0
commit 0e9ef74727
3 changed files with 6 additions and 14 deletions

View File

@@ -245,7 +245,7 @@ setport(){
setconfig host $host
echo -e "\033[32m已经移除自定义host地址请重新运行脚本以自动获取host\033[0m"
exit 0
elif [ -n "$(echo $host | grep -Po '(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|[1-9])(\.(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|\d)){3}')" ]; then
elif [ -n "$(echo $host | grep -oE '(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|[1-9])(\.(1\d{2}|2[0-4]\d|25[0-5]|[1-9]\d|\d)){3}')" ]; then
setconfig host $host
echo -e "\033[32m设置成功\033[0m"
else