From 400d3337aa56b347069cb967a6e8547dc54a8a06 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 25 May 2018 03:30:16 +0200 Subject: core.certmanager: Allow all non-whitespace in service name (fixes #1019) --- core/certmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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 -- cgit v1.2.3