plugins/mod_component.lua

changeset 3319
95fc08869273
parent 2925
692b3c6c5bd2
child 3503
85e511e01d3c
--- 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;

mercurial