Software /
code /
prosody
Comparison
plugins/mod_component.lua @ 909:505a2cbb823d
mod_component: Set default listening interface to 127.0.0.1
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Mar 2009 15:01:23 +0000 |
parent | 902:00daf63c129e |
child | 910:27d909db4714 |
comparison
equal
deleted
inserted
replaced
908:b0ecd18e0558 | 909:505a2cbb823d |
---|---|
21 | 21 |
22 local sessions = {}; | 22 local sessions = {}; |
23 | 23 |
24 local log = module._log; | 24 local log = module._log; |
25 | 25 |
26 local component_listener = { default_port = 5347; default_mode = "*a"; }; | 26 local component_listener = { default_port = 5347; default_mode = "*a"; default_interface = config.get("*", "core", "component_interface") or "127.0.0.1" }; |
27 | 27 |
28 local xmlns_component = 'jabber:component:accept'; | 28 local xmlns_component = 'jabber:component:accept'; |
29 | 29 |
30 --- Callbacks/data for xmlhandlers to handle streams for us --- | 30 --- Callbacks/data for xmlhandlers to handle streams for us --- |
31 | 31 |