v1.3.3
~修复指定本机host时报错的bug ~新手引导说明调整及bug修复 ~修复跳过证书验证功能相关bug ~修复检测配置文件节点相关bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user