BREAKING CHANGE: support several ip addresses

This commit is contained in:
f 2023-04-22 15:07:11 -03:00
parent aa98a37b8b
commit 9c1ac56386

View file

@ -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