diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-30 01:20:13 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-30 01:20:13 +0100 |
commit | 1e7a357152dea2035dc98107cdea05b9e680cdf8 (patch) | |
tree | 82975f42f3a4fb51f43bf9283d3d315aa64a12c7 | |
parent | 60c1421aa1de653586cb4effec5bf1e6c2b36b97 (diff) | |
download | prosody-1e7a357152dea2035dc98107cdea05b9e680cdf8.tar.gz prosody-1e7a357152dea2035dc98107cdea05b9e680cdf8.zip |
mod_component: Allow unauthenticated components to authenticate (thanks Maranda)
-rw-r--r-- | plugins/mod_component.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 09b0d2b3..738124cc 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -43,7 +43,7 @@ function module.add_host(module) local function handle_component_auth(event) local session, stanza = event.origin, event.stanza; - if session.type ~= "component" then return; end + if session.type ~= "component_unauthed" then return; end if (not session.host) or #stanza.tags > 0 then (session.log or log)("warn", "Invalid component handshake for host: %s", session.host); |