Skip to content

Commit a0e93e7

Browse files
committed
Fix error wrong var used and minor typos
1 parent 3e09421 commit a0e93e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

getssl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ USE_SINGLE_ACL="false"
347347
WORKING_DIR_CANDIDATES=("/etc/getssl" "${PROGDIR}/conf" "${PROGDIR}/.getssl" "${HOME}/.getssl")
348348

349349
# Variables used when validating using a DNS entry
350-
VALIDATE_VIA_DNS="" # Set this to "true" to enable DNS validation or set a list of domains to only enable DNS from them.
350+
VALIDATE_VIA_DNS="" # Set this to "true" to enable DNS validation or set a list of domains to only enable DNS for them.
351351
export AUTH_DNS_SERVER="" # Use this DNS server to check the challenge token has been set
352352
export DNS_CHECK_OPTIONS="" # Options (such as TSIG file) required by DNS_CHECK_FUNC
353353
export PUBLIC_DNS_SERVER="" # Use this DNS server to find the authoritative DNS servers for the domain
@@ -365,7 +365,7 @@ validate_via_dns() { # Check dns validation. Return 0 if some domain, or the giv
365365

366366
# Only dot and wilcard are valid chars for a domain that should be escaped. Full match is ensured between espaces or commas.
367367
local d=$1; d=${d//\./\\.}; d=${d//\*/\\*}
368-
[[ -z $1 || $VALIDATE_VIA_DNS =~ (true|(^|[ ,])${1//\./\\.}($|[ ,])) ]] && return 0
368+
[[ -z $d || $VALIDATE_VIA_DNS =~ (true|(^|[ ,])${d}($|[ ,])) ]] && return 0
369369
}
370370

371371
# Private variables

0 commit comments

Comments
 (0)