Skip to content

Commit ac39039

Browse files
authored
Merge pull request #208 from Cargo/renew-allow_domain-locking
Unlock the certificate renewal lock when allow_domain returns false
2 parents 8ca4aed + c263c52 commit ac39039

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/resty/auto-ssl/jobs/renewal.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ local function renew_check_cert(auto_ssl_instance, storage, domain)
138138
local allow_domain = auto_ssl_instance:get("allow_domain")
139139
if not allow_domain(domain, auto_ssl_instance, nil, true) then
140140
ngx.log(ngx.NOTICE, "auto-ssl: domain not allowed, not renewing: ", domain)
141+
renew_check_cert_unlock(domain, storage, local_lock, distributed_lock_value)
141142
return
142143
end
143144

0 commit comments

Comments
 (0)