Changeset

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
parents 908:b0ecd18e0558
children 910:27d909db4714
files plugins/mod_component.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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';