Software /
code /
prosody
Comparison
plugins/mod_component.lua @ 910:27d909db4714
mod_component: Use net_activate_ports to start port listener based on config
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Mar 2009 15:02:07 +0000 |
parent | 909:505a2cbb823d |
child | 914:50850f15340c |
comparison
equal
deleted
inserted
replaced
909:505a2cbb823d | 910:27d909db4714 |
---|---|
212 end | 212 end |
213 end | 213 end |
214 | 214 |
215 connlisteners.register('component', component_listener); | 215 connlisteners.register('component', component_listener); |
216 | 216 |
217 module:add_event_hook("server-starting", function () connlisteners.start("component"); end); | 217 module:add_event_hook("server-started", |
218 function () | |
219 if net_activate_ports then | |
220 net_activate_ports("component_ports", "component", {5437}, "tcp"); | |
221 else | |
222 error("No net_activate_ports: Using an incompatible version of Prosody?"); | |
223 end | |
224 end); |