diff options
author | Paul Aurich <paul@darkrain42.org> | 2009-10-03 23:23:00 -0700 |
---|---|---|
committer | Paul Aurich <paul@darkrain42.org> | 2009-10-03 23:23:00 -0700 |
commit | 7f7fb4b522635d810b75839d27429f26d8a401d3 (patch) | |
tree | 8a709a892314d87f03f09a5d6aeff43ae3227e8d /core | |
parent | 02d5993f79dc0c4c98da669b660172ea4c610a75 (diff) | |
download | prosody-7f7fb4b522635d810b75839d27429f26d8a401d3.tar.gz prosody-7f7fb4b522635d810b75839d27429f26d8a401d3.zip |
Specify XMPP version on response stream to incoming s2s connection.
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 c374b72a..e22a49df 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -352,7 +352,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 }):top_tag()); + ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, version="1.0" }):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 }); |