diff options
author | Kim Alvefur <zash@zash.se> | 2018-05-25 03:30:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-05-25 03:30:16 +0200 |
commit | 21a09c72f6a0e6052ae9bdcdac0e1c13051a2161 (patch) | |
tree | c00d4a1e77eaf4735716e31b342a6d073304ddc1 /core | |
parent | 056e56ccb4a4f22969516574d8ff3da928bfc308 (diff) | |
download | prosody-21a09c72f6a0e6052ae9bdcdac0e1c13051a2161.tar.gz prosody-21a09c72f6a0e6052ae9bdcdac0e1c13051a2161.zip |
core.certmanager: Allow all non-whitespace in service name (fixes #1019)
Diffstat (limited to 'core')
-rw-r--r-- | core/certmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua index 1cbdac5d..dac4baa4 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -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 |