# HG changeset patch # User Kim Alvefur # Date 1527211816 -7200 # Node ID 1a29b56a2d63ff1e4e473ea2537a9c26b4d0df50 # Parent 780d728f969f5108a81b2297162d53c3de6f4b40 core.certmanager: Allow all non-whitespace in service name (fixes #1019) diff -r 780d728f969f -r 1a29b56a2d63 core/certmanager.lua --- a/core/certmanager.lua Tue May 22 22:22:57 2018 +0200 +++ b/core/certmanager.lua Fri May 25 03:30:16 2018 +0200 @@ -157,7 +157,7 @@ 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