# HG changeset patch # User Matthew Wild # Date 1278267267 -3600 # Node ID 95fc0886927310d935ad3ea67ae0a27abf25525e # Parent 8d09b21aeaa98e21f6db8c34c0a1747e3806464a mod_component: Read validate_from_addresses option from the config diff -r 8d09b21aeaa9 -r 95fc08869273 plugins/mod_component.lua --- a/plugins/mod_component.lua Sat Jul 03 18:13:54 2010 +0500 +++ b/plugins/mod_component.lua Sun Jul 04 19:14:27 2010 +0100 @@ -50,6 +50,8 @@ -- 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;