Changeset

10462:9af6ab2623b0

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.
author Kim Alvefur <zash@zash.se>
date Fri, 29 Nov 2019 23:22:29 +0100
parents 10461:e293fb8112e2
children 10463:fbeb7a3fc4eb
files core/portmanager.lua
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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