mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 14:47:37 +03:00
core.certmanager: Check index for wildcard certs
This commit is contained in:
parent
7c93370ad5
commit
da1bffce1d
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ local cert_index;
|
|||
local function find_cert_in_index(index, host)
|
||||
if not host then return nil; end
|
||||
if not index then return nil; end
|
||||
local certs = index[host];
|
||||
local wildcard_host = host:gsub("^[^.]+%.", "*.");
|
||||
local certs = index[host] or index[wildcard_host];
|
||||
if certs then
|
||||
local cert_filename, services = next(certs);
|
||||
if services["*"] then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue