certmanager: Remove debug logging accidentally committed
[prosody.git] / plugins / mod_component.lua
index d9783b0cebd7c6926abada667c1bb4302f5fa07e..033317434322944aab372a662ca12803d46ba1f4 100644 (file)
@@ -1,6 +1,6 @@
 -- Prosody IM
--- Copyright (C) 2008-2009 Matthew Wild
--- Copyright (C) 2008-2009 Waqas Hussain
+-- Copyright (C) 2008-2010 Matthew Wild
+-- Copyright (C) 2008-2010 Waqas Hussain
 -- 
 -- This project is MIT/X11 licensed. Please see the
 -- COPYING file in the source package for more information.
@@ -50,6 +50,8 @@ function handle_component_auth(session, stanza)
        -- Authenticated now
        log("info", "Component authenticated: %s", session.host);
        
+       session.component_validate_from = module:get_option_boolean("validate_from_addresses") ~= false;
+       
        -- If component not already created for this host, create one now
        if not hosts[session.host].connected then
                local send = session.send;