dynamic cert mode should understand domain with trailing dot

This commit is contained in:
Elvin Efendi 2019-07-04 17:30:25 -04:00
parent edf2b03c22
commit 0e5913310d
2 changed files with 17 additions and 1 deletions

View file

@ -28,7 +28,9 @@ local function set_pem_cert_key(pem_cert_key)
end
end
local function get_pem_cert_key(hostname)
local function get_pem_cert_key(raw_hostname)
local hostname = re_sub(raw_hostname, "\\.$", "", "jo")
local pem_cert_key = configuration.get_pem_cert_key(hostname)
if pem_cert_key then
return pem_cert_key