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
commitb65b591c7a19f17f73097e3120f0d13c7dd49886 (patch)
treeda9c841f585d918ce5c7e6e3c1d1f1b132c5b527 /core/portmanager.lua
parent593c04436f5052d8ed201dc6a2f29e52ff5ab622 (diff)
downloadprosody-b65b591c7a19f17f73097e3120f0d13c7dd49886.tar.gz
prosody-b65b591c7a19f17f73097e3120f0d13c7dd49886.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