Software /
code /
prosody
Changeset
8827:1a29b56a2d63
core.certmanager: Allow all non-whitespace in service name (fixes #1019)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 25 May 2018 03:30:16 +0200 |
parents | 8819:780d728f969f |
children | 8828:2a0d7fa4c56a 8834:b0093d3b2d04 |
files | core/certmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/certmanager.lua Tue May 22 22:22:57 2018 +0200 +++ b/core/certmanager.lua Fri May 25 03:30:16 2018 +0200 @@ -157,7 +157,7 @@ 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