Skip to content

Commit c263c52

Browse files
committed
Unlock the certificate renewal lock when allow_domain returns false
All other early returns in renew_check_cert drop this lock. Would warrant a comment if this is not needed here.
1 parent 9d43c23 commit c263c52

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)