aboutsummaryrefslogtreecommitdiffstats
path: root/core/portmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-29 23:22:29 +0100
committerKim Alvefur <zash@zash.se>2019-11-29 23:22:29 +0100
commitaf05495fa2591bb9e8f0d41402873cae6497bbaa (patch)
treeda9c841f585d918ce5c7e6e3c1d1f1b132c5b527 /core/portmanager.lua
parent2d7eada577d9288f749a7831b67e049af3cbee1a (diff)
downloadprosody-af05495fa2591bb9e8f0d41402873cae6497bbaa.tar.gz
prosody-af05495fa2591bb9e8f0d41402873cae6497bbaa.zip
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.
Diffstat (limited to 'core/portmanager.lua')
-rw-r--r--core/portmanager.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua
index 55868c34..e94720dd 100644
--- a/core/portmanager.lua
+++ b/core/portmanager.lua
@@ -245,10 +245,6 @@ local function add_sni_host(host, service)
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