diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-07-04 19:14:27 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-07-04 19:14:27 +0100 |
commit | ee6c70ee5265230b092b351e5f6a284700827f23 (patch) | |
tree | 7ff8f963c43222f299830aa4877bc0f6a99f919f | |
parent | 40100bac5ca711d3b850a57f60506774fac2a084 (diff) | |
download | prosody-ee6c70ee5265230b092b351e5f6a284700827f23.tar.gz prosody-ee6c70ee5265230b092b351e5f6a284700827f23.zip |
mod_component: Read validate_from_addresses option from the config
-rw-r--r-- | plugins/mod_component.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 7efb4f9c..03331743 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -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; |