aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2009-12-15 18:58:22 +0000
committerPaul Aurich <paul@darkrain42.org>2009-12-15 18:58:22 +0000
commit96f384546f67728840de4d7c2d8bfb69867ae6f4 (patch)
tree2b083faca4ea4cf6138e0762b4f909596a395292 /prosody
parent883e2bd682e1ca418bb459ebf5804e126f8bfca1 (diff)
downloadprosody-96f384546f67728840de4d7c2d8bfb69867ae6f4.tar.gz
prosody-96f384546f67728840de4d7c2d8bfb69867ae6f4.zip
prosody: Fix to net_activate_ports to mend binding to specific interfaces
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody8
1 files changed, 4 insertions, 4 deletions
diff --git a/prosody b/prosody
index 5409f19c..6ff7743d 100755
--- a/prosody
+++ b/prosody
@@ -193,17 +193,17 @@ function init_global_state()
local cl = require "net.connlisteners";
function prosody.net_activate_ports(option, listener, default, conntype)
conntype = conntype or (global_ssl_ctx and "tls") or "tcp";
- option = option and option.."_ports" or "ports";
+ local ports_option = option and option.."_ports" or "ports";
if not cl.get(listener) then return; end
- local ports = config.get("*", "core", option) or default;
+ local ports = config.get("*", "core", ports_option) or default;
if type(ports) == "number" then ports = {ports} end;
if type(ports) ~= "table" then
- log("error", "core."..option.." is not a table");
+ log("error", "core."..ports_option.." is not a table");
else
for _, port in ipairs(ports) do
if type(port) ~= "number" then
- log("error", "Non-numeric "..option.."_ports: "..tostring(port));
+ log("error", "Non-numeric "..ports_option..": "..tostring(port));
else
cl.start(listener, {
ssl = conntype ~= "tcp" and global_ssl_ctx,