mod_component: Small code clarity fix
[prosody.git] / plugins / mod_component.lua
index fda271ddab671ba44e5db4e715e8793ed8a6322c..a70a722323454a8c2f30075176886dde97e6c28b 100644 (file)
@@ -86,7 +86,7 @@ function handle_component_auth(event)
                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