Software /
code /
prosody
Changeset
4806:27a99c289b90
mod_component: Allow unauthenticated components to authenticate (thanks Maranda)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 30 Apr 2012 01:20:13 +0100 |
parents | 4805:1aeece2cc814 |
children | 4807:2999f0fd1347 4809:3068ec951ffd |
files | plugins/mod_component.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_component.lua Mon Apr 30 01:02:39 2012 +0100 +++ b/plugins/mod_component.lua Mon Apr 30 01:20:13 2012 +0100 @@ -43,7 +43,7 @@ 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);