# HG changeset patch # User Matthew Wild # Date 1228410602 0 # Node ID efde848869c5697d1da8a1de2698ee98a5d59fe4 # Parent cf6e19ea1cbca7353d270246f044ba75dd766a07 Don't send stream:features to incoming s2s connections diff -r cf6e19ea1cbc -r efde848869c5 core/s2smanager.lua --- a/core/s2smanager.lua Thu Dec 04 16:41:32 2008 +0000 +++ b/core/s2smanager.lua Thu Dec 04 17:10:02 2008 +0000 @@ -180,7 +180,9 @@ function streamopened(session, attr) local send = session.sends2s; - session.version = tonumber(attr.version) or 0; + -- TODO: #29: SASL/TLS on s2s streams + session.version = 0; --tonumber(attr.version) or 0; + if session.version >= 1.0 and not (attr.to and attr.from) then --print("to: "..tostring(attr.to).." from: "..tostring(attr.from)); log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC");