Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
543:cf6e19ea1cbc | 544:efde848869c5 |
---|---|
178 end | 178 end |
179 | 179 |
180 function streamopened(session, attr) | 180 function streamopened(session, attr) |
181 local send = session.sends2s; | 181 local send = session.sends2s; |
182 | 182 |
183 session.version = tonumber(attr.version) or 0; | 183 -- TODO: #29: SASL/TLS on s2s streams |
184 session.version = 0; --tonumber(attr.version) or 0; | |
185 | |
184 if session.version >= 1.0 and not (attr.to and attr.from) then | 186 if session.version >= 1.0 and not (attr.to and attr.from) then |
185 --print("to: "..tostring(attr.to).." from: "..tostring(attr.from)); | 187 --print("to: "..tostring(attr.to).." from: "..tostring(attr.from)); |
186 log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC"); | 188 log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC"); |
187 end | 189 end |
188 | 190 |