diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-06 15:02:16 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-06 15:02:16 +0100 |
commit | 33f79565005842b5b41c19a7fb9740ddd1d67125 (patch) | |
tree | 22cb783c5212067dad7a3f08488b00b0df4360ed /core | |
parent | 1a9c9dd9363ac2af3ea097def64ded9f386f3e0d (diff) | |
download | prosody-33f79565005842b5b41c19a7fb9740ddd1d67125.tar.gz prosody-33f79565005842b5b41c19a7fb9740ddd1d67125.zip |
s2smanager: Don't send version=1.0 in reply to incoming stream tag if they didn't advertise 1.0 (makes happy some old ejabberd versions)
Diffstat (limited to 'core')
-rw-r--r-- | core/s2smanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 6052d652..055e48cd 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -358,7 +358,7 @@ function streamopened(session, attr) (session.log or log)("debug", "incoming s2s received <stream:stream>"); send("<?xml version='1.0'?>"); send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', - ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, version="1.0" }):top_tag()); + ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, version=(session.version > 0 and "1.0" or nil) }):top_tag()); if session.to_host and not hosts[session.to_host] then -- Attempting to connect to a host we don't serve session:close({ condition = "host-unknown"; text = "This host does not serve "..session.to_host }); |