diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-07-23 21:09:25 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-07-23 21:09:25 +0100 |
commit | 28116c323879a11c7c8e5bef4a5b1af369628d71 (patch) | |
tree | f21f160257f17ab72edc0d677d94d291417f0598 /prosody | |
parent | 351a37ef5437d631d61975160d2b45d4789d0bd9 (diff) | |
download | prosody-28116c323879a11c7c8e5bef4a5b1af369628d71.tar.gz prosody-28116c323879a11c7c8e5bef4a5b1af369628d71.zip |
prosody: net_activate_ports: Check listener exists before trying to open port for it
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |