Mercurial > prosody-hg
comparison core/s2smanager.lua @ 346:22c8f7d412a1
Don't send version 1.0. Who cares about Gmail?
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 19 Nov 2008 05:34:00 +0000 |
| parents | 6a7acfc1c933 |
| children | 256f18e2bfd2 |
comparison
equal
deleted
inserted
replaced
| 345:6a7acfc1c933 | 346:22c8f7d412a1 |
|---|---|
| 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", { 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()); | 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()); |
| 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 |
