File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ USE_SINGLE_ACL="false"
345
345
WORKING_DIR_CANDIDATES=(" /etc/getssl" " ${PROGDIR} /conf" " ${PROGDIR} /.getssl" " ${HOME} /.getssl" )
346
346
347
347
# Variables used when validating using a DNS entry
348
- VALIDATE_VIA_DNS=" " # Set this to "true" to enable DNS validation or set a list of domains to only enable DNS from them.
348
+ VALIDATE_VIA_DNS=" " # Set this to "true" to enable DNS validation or set a list of domains to only enable DNS for them.
349
349
export AUTH_DNS_SERVER=" " # Use this DNS server to check the challenge token has been set
350
350
export DNS_CHECK_OPTIONS=" " # Options (such as TSIG file) required by DNS_CHECK_FUNC
351
351
export PUBLIC_DNS_SERVER=" " # Use this DNS server to find the authoritative DNS servers for the domain
@@ -363,7 +363,7 @@ validate_via_dns() { # Check dns validation. Return 0 if some domain, or the giv
363
363
364
364
# Only dot and wilcard are valid chars for a domain that should be escaped. Full match is ensured between espaces or commas.
365
365
local d=$1 ; d=${d// \. / \\ .} ; d=${d// \* / \\ * }
366
- [[ -z $1 || $VALIDATE_VIA_DNS =~ (true| (^| [ ,])${1 // \. / \\ . } ($| [ ,])) ]] && return 0
366
+ [[ -z $d || $VALIDATE_VIA_DNS =~ (true| (^| [ ,])${d } ($| [ ,])) ]] && return 0
367
367
}
368
368
369
369
# Private variables
You can’t perform that action at this time.
0 commit comments