Software /
code /
prosody
Changeset
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 |
parents | 3318:8d09b21aeaa9 |
children | 3320:517ae40a12a2 |
files | plugins/mod_component.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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;