Diff

plugins/mod_component.lua @ 3319:95fc08869273

mod_component: Read validate_from_addresses option from the config
author Matthew Wild <mwild1@gmail.com>
date Sun, 04 Jul 2010 19:14:27 +0100
parent 2925:692b3c6c5bd2
child 3503:85e511e01d3c
line wrap: on
line diff
--- 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;