Software /
code /
prosody
Comparison
core/s2smanager.lua @ 4513:23b540ab346a
core.s2smanager: Log the entire stream header.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 04 Mar 2012 17:38:47 +0100 |
parent | 4511:92597f6223de |
child | 4518:f2d695d2e31e |
comparison
equal
deleted
inserted
replaced
4511:92597f6223de | 4513:23b540ab346a |
---|---|
445 -- Send a reply stream header | 445 -- Send a reply stream header |
446 session.to_host = attr.to and nameprep(attr.to); | 446 session.to_host = attr.to and nameprep(attr.to); |
447 session.from_host = attr.from and nameprep(attr.from); | 447 session.from_host = attr.from and nameprep(attr.from); |
448 | 448 |
449 session.streamid = uuid_gen(); | 449 session.streamid = uuid_gen(); |
450 (session.log or log)("debug", "Incoming s2s received <stream:stream>"); | 450 (session.log or log)("debug", "Incoming s2s received %s", st.stanza("stream:stream", attr):top_tag()); |
451 if session.to_host then | 451 if session.to_host then |
452 if not hosts[session.to_host] then | 452 if not hosts[session.to_host] then |
453 -- Attempting to connect to a host we don't serve | 453 -- Attempting to connect to a host we don't serve |
454 session:close({ | 454 session:close({ |
455 condition = "host-unknown"; | 455 condition = "host-unknown"; |