aboutsummaryrefslogtreecommitdiffstats
path: root/core/certmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-25 03:30:16 +0200
committerKim Alvefur <zash@zash.se>2018-05-25 03:30:16 +0200
commit400d3337aa56b347069cb967a6e8547dc54a8a06 (patch)
treec00d4a1e77eaf4735716e31b342a6d073304ddc1 /core/certmanager.lua
parent0f78fff909b3c670fc39ab40a12854d06acd6f98 (diff)
downloadprosody-400d3337aa56b347069cb967a6e8547dc54a8a06.tar.gz
prosody-400d3337aa56b347069cb967a6e8547dc54a8a06.zip
core.certmanager: Allow all non-whitespace in service name (fixes #1019)
Diffstat (limited to 'core/certmanager.lua')
-rw-r--r--core/certmanager.lua2
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