# HG changeset patch # User Kim Alvefur # Date 1575066149 -3600 # Node ID 9af6ab2623b0e239a85b43f5f178590bd6a873c0 # Parent e293fb8112e235154a0817833f1bb8d328f1279d 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. diff -r e293fb8112e2 -r 9af6ab2623b0 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