Software /
code /
prosody
Comparison
core/portmanager.lua @ 10538:71b82567245c
core.portmanager: Ignore unused return variable [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 21:26:51 +0100 |
parent | 10468:7341d2f4749a |
child | 10641:85f1cbfd364a |
comparison
equal
deleted
inserted
replaced
10537:c5558138ce33 | 10538:71b82567245c |
---|---|
235 if active_service.server.hosts and active_service.tls_cfg then | 235 if active_service.server.hosts and active_service.tls_cfg then |
236 local config_prefix = (active_service.config_prefix or name).."_"; | 236 local config_prefix = (active_service.config_prefix or name).."_"; |
237 if config_prefix == "_" then config_prefix = ""; end | 237 if config_prefix == "_" then config_prefix = ""; end |
238 local prefix_ssl_config = config.get(host, config_prefix.."ssl"); | 238 local prefix_ssl_config = config.get(host, config_prefix.."ssl"); |
239 local autocert = certmanager.find_host_cert(host); | 239 local autocert = certmanager.find_host_cert(host); |
240 -- luacheck: ignore 211/cfg | |
240 local ssl, err, cfg = certmanager.create_context(host, "server", prefix_ssl_config, autocert, active_service.tls_cfg); | 241 local ssl, err, cfg = certmanager.create_context(host, "server", prefix_ssl_config, autocert, active_service.tls_cfg); |
241 if ssl then | 242 if ssl then |
242 active_service.server.hosts[host] = ssl; | 243 active_service.server.hosts[host] = ssl; |
243 else | 244 else |
244 log("error", "Error creating TLS context for SNI host %s: %s", host, err); | 245 log("error", "Error creating TLS context for SNI host %s: %s", host, err); |