From 9c1ac563869696ebe7352c36b63a2d938d14a291 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 22 Apr 2023 15:07:11 -0300 Subject: [PATCH] BREAKING CHANGE: support several ip addresses --- certbotd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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