Skip to content

Commit

Permalink
feat(脚本): 增加申请通配符证书的限制
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-a committed Dec 21, 2023
1 parent 7a95ec2 commit 781a4c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 781a4c9

Please sign in to comment.