Software /
code /
prosody
Diff
plugins/mod_component.lua @ 4301:1484ac561b28
mod_component: Small code clarity fix
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 04 Jun 2011 00:29:55 +0100 |
parent | 3674:4b7281c577b9 |
child | 4323:53f3c3001499 |
line wrap: on
line diff
--- a/plugins/mod_component.lua Fri Jun 03 05:36:44 2011 +0100 +++ b/plugins/mod_component.lua Sat Jun 04 00:29:55 2011 +0100 @@ -86,7 +86,7 @@ send = session.send; main_session = session; session.on_destroy = on_destroy; - session.component_validate_from = module:get_option_boolean("validate_from_addresses") ~= false; + session.component_validate_from = module:get_option_boolean("validate_from_addresses", true); log("info", "Component successfully authenticated: %s", session.host); session.send(st.stanza("handshake")); else -- TODO: Implement stanza distribution