aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-04 17:10:02 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-04 17:10:02 +0000
commit533449b6d26621a0e410e84003f1902e319bbfb6 (patch)
treeb0da42e378e54d90f54ab579e0aa17c2cd64d021 /core
parentbf3bb39ea3ebf1faff066579a2647e31aa031ace (diff)
downloadprosody-533449b6d26621a0e410e84003f1902e319bbfb6.tar.gz
prosody-533449b6d26621a0e410e84003f1902e319bbfb6.zip
Don't send stream:features to incoming s2s connections
Diffstat (limited to 'core')
-rw-r--r--core/s2smanager.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 9c7a6008..df877767 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -180,7 +180,9 @@ end
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");