Diff

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
line wrap: on
line diff
--- a/plugins/mod_component.lua	Sun Mar 22 14:59:28 2009 +0000
+++ b/plugins/mod_component.lua	Sun Mar 22 15:01:23 2009 +0000
@@ -23,7 +23,7 @@
 
 local log = module._log;
 
-local component_listener = { default_port = 5347; default_mode = "*a"; };
+local component_listener = { default_port = 5347; default_mode = "*a"; default_interface = config.get("*", "core", "component_interface") or "127.0.0.1" };
 
 local xmlns_component = 'jabber:component:accept';