Software /
code /
prosody
Comparison
core/s2smanager.lua @ 350:08f89c25e76e
Send version=1.0 again in s2s stream header
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 19 Nov 2008 22:05:44 +0000 |
parent | 349:256f18e2bfd2 |
child | 351:b6c552bc5716 |
comparison
equal
deleted
inserted
replaced
349:256f18e2bfd2 | 350:08f89c25e76e |
---|---|
158 session.from_host = attr.from; | 158 session.from_host = attr.from; |
159 | 159 |
160 session.streamid = uuid_gen(); | 160 session.streamid = uuid_gen(); |
161 print(session, session.from_host, "incoming s2s stream opened"); | 161 print(session, session.from_host, "incoming s2s stream opened"); |
162 send("<?xml version='1.0'?>"); | 162 send("<?xml version='1.0'?>"); |
163 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()); | 163 send(stanza("stream:stream", { version = '1.0', xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host }):top_tag()); |
164 if session.to_host and not hosts[session.to_host] then | 164 if session.to_host and not hosts[session.to_host] then |
165 -- Attempting to connect to a host we don't serve | 165 -- Attempting to connect to a host we don't serve |
166 session:close("host-unknown"); | 166 session:close("host-unknown"); |
167 return; | 167 return; |
168 end | 168 end |