Software /
code /
prosody
Changeset
9837:789395f027f1
core.portmanager: Reduce scope of variable
Not sure why it was all the way out there, seems like there would have
been unexpected behaviour from that
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Oct 2018 17:22:08 +0200 |
parents | 9836:e487197ba8a5 |
children | 9839:9007ae90aeb1 |
files | core/portmanager.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/portmanager.lua Thu Sep 13 21:17:37 2018 +0200 +++ b/core/portmanager.lua Wed Oct 10 17:22:08 2018 +0200 @@ -95,7 +95,7 @@ } bind_ports = set.new(type(bind_ports) ~= "table" and { bind_ports } or bind_ports ); - local mode, ssl = listener.default_mode or default_mode; + local mode = listener.default_mode or default_mode; local hooked_ports = {}; for interface in bind_interfaces do @@ -107,7 +107,7 @@ log("error", "Multiple services configured to listen on the same port ([%s]:%d): %s, %s", interface, port, active_services:search(nil, interface, port)[1][1].service.name or "<unnamed>", service_name or "<unnamed>"); else - local err; + local ssl, err; -- Create SSL context for this service/port if service_info.encryption == "ssl" then local global_ssl_config = config.get("*", "ssl") or {};