feat(脚本): 增加申请通配符证书的限制

pull/909/head^2
mack-a 2023-12-21 14:17:32 +08:00
parent 7a95ec222e
commit 781a4c9887
1 changed files with 4 additions and 0 deletions

View File

@ -1482,6 +1482,10 @@ initDNSAPIConfig() {
initDNSAPIConfig "$1"
else
echo
if ! echo "${dnsTLSDomain}" | grep -q "."; then
echoContent green " ---> 不支持此域名申请通配符证书,建议使用此格式[xx.xx.xx]"
exit 0
fi
read -r -p "是否使用*.${dnsTLSDomain}进行API申请通配符证书[y/n]:" dnsAPIStatus
if [[ "${dnsAPIStatus}" != "y" ]]; then
exit 0