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.
--- 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