core.portmanager: Don't set the first TLS context with a cert as main context
authorKim Alvefur <zash@zash.se>
Fri, 29 Nov 2019 23:22:29 +0100
changeset 10466 9af6ab2623b0
parent 10465 e293fb8112e2
child 10467 fbeb7a3fc4eb
core.portmanager: Don't set the first TLS context with a cert as main context Don't think this works and it's apparently acceptable to require SNI these days.
core/portmanager.lua
--- a/core/portmanager.lua	Thu Nov 21 00:16:20 2019 +0100
+++ b/core/portmanager.lua	Fri Nov 29 23:22:29 2019 +0100
@@ -245,10 +245,6 @@
 			local ssl, err, cfg = certmanager.create_context(host, "server");
 			if ssl then
 				active_service.server.hosts[host] = ssl;
-				if not active_service.tls_cfg.certificate then
-					active_service.server.tls_ctx = ssl;
-					active_service.tls_cfg = cfg;
-				end
 			else
 				log("error", "err = %q", err);
 			end