aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;