Software /
code /
prosody
Comparison
core/s2smanager.lua @ 354:9b461ae785b1
Remove version=1.0 on s2s stream headers, again.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 20 Nov 2008 01:14:31 +0000 |
parent | 353:e7d776b5ebb9 |
child | 360:e918c979ad1a |
comparison
equal
deleted
inserted
replaced
353:e7d776b5ebb9 | 354:9b461ae785b1 |
---|---|
154 session.from_host = attr.from; | 154 session.from_host = attr.from; |
155 | 155 |
156 session.streamid = uuid_gen(); | 156 session.streamid = uuid_gen(); |
157 print(session, session.from_host, "incoming s2s stream opened"); | 157 print(session, session.from_host, "incoming s2s stream opened"); |
158 send("<?xml version='1.0'?>"); | 158 send("<?xml version='1.0'?>"); |
159 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()); | 159 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()); |
160 if session.to_host and not hosts[session.to_host] then | 160 if session.to_host and not hosts[session.to_host] then |
161 -- Attempting to connect to a host we don't serve | 161 -- Attempting to connect to a host we don't serve |
162 session:close("host-unknown"); | 162 session:close("host-unknown"); |
163 return; | 163 return; |
164 end | 164 end |