Diff

core/certmanager.lua @ 8828:2a0d7fa4c56a

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 25 May 2018 03:33:13 +0200
parent 8555:4f0f5b49bb03
parent 8827:1a29b56a2d63
child 9852:6ea3cafb6ac3
child 10709:fcf7f50ccdd0
line wrap: on
line diff
--- a/core/certmanager.lua	Wed May 23 18:15:36 2018 +0200
+++ b/core/certmanager.lua	Fri May 25 03:33:13 2018 +0200
@@ -158,7 +158,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