mod_component: Small code clarity fix
authorMatthew Wild <mwild1@gmail.com>
Fri, 3 Jun 2011 23:29:55 +0000 (00:29 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 3 Jun 2011 23:29:55 +0000 (00:29 +0100)
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