mod_component: Set default listening interface to 127.0.0.1

Sun, 22 Mar 2009 15:01:23 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 22 Mar 2009 15:01:23 +0000
changeset 909
505a2cbb823d
parent 908
b0ecd18e0558
child 910
27d909db4714

mod_component: Set default listening interface to 127.0.0.1

plugins/mod_component.lua file | annotate | diff | comparison | revisions
--- 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';
 

mercurial