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 | 5b0c75379e205e33a24efa674da250d5ac3f7c47 (patch) | |
tree | c00d4a1e77eaf4735716e31b342a6d073304ddc1 | |
parent | 99ded745a65df5d35a5d4aad15c6acad34ea73c9 (diff) | |
download | prosody-5b0c75379e205e33a24efa674da250d5ac3f7c47.tar.gz prosody-5b0c75379e205e33a24efa674da250d5ac3f7c47.zip |
core.certmanager: Allow all non-whitespace in service name (fixes #1019)
-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 |