aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-07-04 19:14:27 +0100
committerMatthew Wild <mwild1@gmail.com>2010-07-04 19:14:27 +0100
commitee6c70ee5265230b092b351e5f6a284700827f23 (patch)
tree7ff8f963c43222f299830aa4877bc0f6a99f919f /plugins
parent40100bac5ca711d3b850a57f60506774fac2a084 (diff)
downloadprosody-ee6c70ee5265230b092b351e5f6a284700827f23.tar.gz
prosody-ee6c70ee5265230b092b351e5f6a284700827f23.zip
mod_component: Read validate_from_addresses option from the config
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_component.lua2
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;