aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/certmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 3c1bd454..5282a6f5 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -158,7 +158,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