Comparison

plugins/s2s/mod_s2s.lua @ 4590:883611842d3a

mod_s2s: Log the entire stream header.
author Kim Alvefur <zash@zash.se>
date Sun, 04 Mar 2012 17:39:19 +0100
parent 4587:93a84314c296
child 4591:75b3d0c301d0
comparison
equal deleted inserted replaced
4588:3e7702891649 4590:883611842d3a
170 -- Send a reply stream header 170 -- Send a reply stream header
171 session.to_host = attr.to and nameprep(attr.to); 171 session.to_host = attr.to and nameprep(attr.to);
172 session.from_host = attr.from and nameprep(attr.from); 172 session.from_host = attr.from and nameprep(attr.from);
173 173
174 session.streamid = uuid_gen(); 174 session.streamid = uuid_gen();
175 (session.log or log)("debug", "Incoming s2s received <stream:stream>"); 175 (session.log or log)("debug", "Incoming s2s received %s", st.stanza("stream:stream", attr):top_tag());
176 if session.to_host then 176 if session.to_host then
177 if not hosts[session.to_host] then 177 if not hosts[session.to_host] then
178 -- Attempting to connect to a host we don't serve 178 -- Attempting to connect to a host we don't serve
179 session:close({ 179 session:close({
180 condition = "host-unknown"; 180 condition = "host-unknown";