@@ -716,7 +716,7 @@ check_config() { # check the config files for all obvious errors
716716 config_errors=true
717717 fi
718718
719- if [[ validate_via_dns ]] ; then # using dns-01 challenge
719+ if validate_via_dns; then # using dns-01 challenge
720720 if [[ -z " $DNS_ADD_COMMAND " ]]; then
721721 info " ${DOMAIN} : DNS_ADD_COMMAND not defined (whilst VALIDATE_VIA_DNS='${VALIDATE_VIA_DNS} ')"
722722 config_errors=true
@@ -735,7 +735,7 @@ check_config() { # check the config files for all obvious errors
735735 if [[ " $( grep " ^${d} $" " $tmplist " ) " = " $d " ]]; then
736736 info " ${DOMAIN} : $d appears to be duplicated in domain, SAN list"
737737 config_errors=true
738- elif [[ " $d " != " ${d## \* .} " ]] && ! validate_via_dns $d ; then
738+ elif [[ " $d " != " ${d## \* .} " ]] && ! validate_via_dns " $d " ; then
739739 info " ${DOMAIN} : cannot use http-01 validation for wildcard domains"
740740 config_errors=true
741741 else
@@ -748,7 +748,7 @@ check_config() { # check the config files for all obvious errors
748748 DOMAIN_ACL=" ${ACL[$dn]} "
749749 fi
750750
751- if ! validate_via_dns $d ; then # using http-01 challenge
751+ if ! validate_via_dns " $d " ; then # using http-01 challenge
752752 if [[ -z " ${DOMAIN_ACL} " ]]; then
753753 info " ${DOMAIN} : ACL location not specified for domain $d in $DOMAIN_DIR /getssl.cfg"
754754 config_errors=true
@@ -1422,7 +1422,7 @@ for d in "${alldomains[@]}"; do
14221422 (( dn++ ))
14231423 else
14241424 PREVIOUSLY_VALIDATED=" false"
1425- if validate_via_dns $d ; then # set up the correct DNS token for verification
1425+ if validate_via_dns " $d " ; then # set up the correct DNS token for verification
14261426 if [[ $API -eq 1 ]]; then
14271427 # get the dns component of the ACME response
14281428 # get the token and uri from the dns component
0 commit comments