From 5b0c75379e205e33a24efa674da250d5ac3f7c47 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