aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2010-01-03 11:26:36 -0800
committerPaul Aurich <paul@darkrain42.org>2010-01-03 11:26:36 -0800
commit92b2d54b4b515f72bdeff377bac640dd0ac3cae3 (patch)
tree8f23d3aa5ea728f3d8729b16f05ce61825871fb1
parent67509f371ad0116a6c13b6f715d9bd3f769e6807 (diff)
downloadprosody-92b2d54b4b515f72bdeff377bac640dd0ac3cae3.tar.gz
prosody-92b2d54b4b515f72bdeff377bac640dd0ac3cae3.zip
s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy.
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index f444e843..40fd6795 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -379,7 +379,7 @@ function streamopened(session, attr)
end
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=(session.version > 0 and "1.0" or nil) }):top_tag());
+ ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, to=session.from_host, version=(session.version > 0 and "1.0" or nil) }):top_tag());
if session.version >= 1.0 then
local features = st.stanza("stream:features");