Software /
code /
prosody
Diff
core/s2smanager.lua @ 544:efde848869c5
Don't send stream:features to incoming s2s connections
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 04 Dec 2008 17:10:02 +0000 |
parent | 543:cf6e19ea1cbc |
child | 558:ab3960421356 |
line wrap: on
line diff
--- 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");