Software /
code /
prosody
Changeset
2421:83773aed9437
s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 03 Jan 2010 11:26:36 -0800 |
parents | 2420:6ccd36a95a81 |
children | 2422:affeb565b050 |
files | core/s2smanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Sun Jan 03 18:55:42 2010 +0000 +++ b/core/s2smanager.lua Sun Jan 03 11:26:36 2010 -0800 @@ -369,7 +369,7 @@ 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");