mod_dialback, mod_s2s: Log initiation of dialback in mod_dialback

This commit is contained in:
Kim Alvefur 2012-03-03 16:45:34 +01:00
parent d0424f6f4e
commit 58900081f6
2 changed files with 2 additions and 1 deletions

View file

@ -155,12 +155,14 @@ end, 100);
module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
if not origin.external_auth or origin.external_auth == "failed" then
module:log("debug", "Initiating dialback...");
initiate_dialback(origin);
return true;
end
end, 100);
module:hook("s2s-authenticate-legacy", function (event)
module:log("debug", "Initiating dialback...");
initiate_dialback(event.origin);
return true;
end, 100);

View file

@ -232,7 +232,6 @@ function stream_callbacks.streamopened(session, attr)
-- If server is pre-1.0, don't wait for features, just do dialback
if session.version < 1.0 then
if not session.dialback_verifying then
log("debug", "Initiating dialback...");
hosts[session.from_host].events.fire_event("s2s-authenticate-legacy", { origin = session });
else
s2s_mark_connected(session);