aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosody b/prosody
index 80c0f6f2..e9f00598 100755
--- a/prosody
+++ b/prosody
@@ -195,6 +195,7 @@ function prepare_to_start()
local cl = require "net.connlisteners";
-- start listening on sockets
function net_activate_ports(option, listener, default, conntype)
+ if not cl.get(listener) then return; end
local ports = config.get("*", "core", option.."_ports") or default;
if type(ports) == "number" then ports = {ports} end;