diff --git a/certbotd.sh b/certbotd.sh index 42ccbc9..7cb54cc 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -94,7 +94,7 @@ case $1 in test -d "/etc/letsencrypt/live/${domain}" && continue # Ignore non local domains - nslookup "${domain}" 8.8.8.8 | grep -q "${SUTTY_ADDRESS}" || continue + nslookup "${domain}" 8.8.8.8 | grep -qE "^(${SUTTY_ADDRESSES// /|})$" || continue # Get the certificate for the domain, the webserver will need # access to this directory