Comparison

core/portmanager.lua @ 11412:77785c5d6773

core.portmanager: Log SNI hosts, services looked for To highlight how many these are
author Kim Alvefur <zash@zash.se>
date Tue, 02 Mar 2021 21:47:09 +0100
parent 10641:85f1cbfd364a
child 11535:180c5951e7e4
comparison
equal deleted inserted replaced
11411:f1fe37916501 11412:77785c5d6773
228 end 228 end
229 229
230 -- Event handlers 230 -- Event handlers
231 231
232 local function add_sni_host(host, service) 232 local function add_sni_host(host, service)
233 log("debug", "Gathering certificates for SNI for host %s, %s service", host, service or "default");
233 for name, interface, port, n, active_service --luacheck: ignore 213 234 for name, interface, port, n, active_service --luacheck: ignore 213
234 in active_services:iter(service, nil, nil, nil) do 235 in active_services:iter(service, nil, nil, nil) do
235 if active_service.server.hosts and active_service.tls_cfg then 236 if active_service.server.hosts and active_service.tls_cfg then
236 local config_prefix = (active_service.config_prefix or name).."_"; 237 local config_prefix = (active_service.config_prefix or name).."_";
237 if config_prefix == "_" then config_prefix = ""; end 238 if config_prefix == "_" then config_prefix = ""; end