mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_component: Read validate_from_addresses option from the config
This commit is contained in:
parent
40100bac5c
commit
ee6c70ee52
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue