Software /
code /
prosody
Comparison
core/portmanager.lua @ 10468:7341d2f4749a
core.portmanager: Complete error message for SNI TLS context problems
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 30 Nov 2019 16:40:04 +0100 |
parent | 10463:fbeb7a3fc4eb |
child | 10538:71b82567245c |
comparison
equal
deleted
inserted
replaced
10467:600d4cf41ce1 | 10468:7341d2f4749a |
---|---|
239 local autocert = certmanager.find_host_cert(host); | 239 local autocert = certmanager.find_host_cert(host); |
240 local ssl, err, cfg = certmanager.create_context(host, "server", prefix_ssl_config, autocert, active_service.tls_cfg); | 240 local ssl, err, cfg = certmanager.create_context(host, "server", prefix_ssl_config, autocert, active_service.tls_cfg); |
241 if ssl then | 241 if ssl then |
242 active_service.server.hosts[host] = ssl; | 242 active_service.server.hosts[host] = ssl; |
243 else | 243 else |
244 log("error", "err = %q", err); | 244 log("error", "Error creating TLS context for SNI host %s: %s", host, err); |
245 end | 245 end |
246 end | 246 end |
247 end | 247 end |
248 end | 248 end |
249 prosody.events.add_handler("item-added/net-provider", function (event) | 249 prosody.events.add_handler("item-added/net-provider", function (event) |