aboutsummaryrefslogtreecommitdiffstats
path: root/core/portmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-10 17:22:08 +0200
committerKim Alvefur <zash@zash.se>2018-10-10 17:22:08 +0200
commit3d5cb716b4f2dd544f83ce7bd1fee55f3a1ef43f (patch)
tree233b8ff1af285e9932ebe1c699ac5f6c285e05a0 /core/portmanager.lua
parentddf2d725a6968d38b5819c2ef881a1479b5972a6 (diff)
downloadprosody-3d5cb716b4f2dd544f83ce7bd1fee55f3a1ef43f.tar.gz
prosody-3d5cb716b4f2dd544f83ce7bd1fee55f3a1ef43f.zip
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
Diffstat (limited to 'core/portmanager.lua')
-rw-r--r--core/portmanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua
index cf836634..db41e1ea 100644
--- a/core/portmanager.lua
+++ b/core/portmanager.lua
@@ -95,7 +95,7 @@ local function activate(service_name)
}
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 @@ local function activate(service_name)
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 {};