mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
core.certmanager: Allow all non-whitespace in service name (fixes #1019)
This commit is contained in:
parent
0f78fff909
commit
400d3337aa
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ end
|
|||
local function create_context(host, mode, ...)
|
||||
local cfg = new_config();
|
||||
cfg:apply(core_defaults);
|
||||
local service_name, port = host:match("^(%w+) port (%d+)$");
|
||||
local service_name, port = host:match("^(%S+) port (%d+)$");
|
||||
if service_name then
|
||||
cfg:apply(find_service_cert(service_name, tonumber(port)));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue