Software /
code /
prosody
Comparison
core/s2smanager.lua @ 167:c51246bc679d
Remove misleading log message regarding s2s/dialback
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 25 Oct 2008 18:21:34 +0100 |
parent | 164:8dc1faa5b1df |
child | 169:92768120b717 |
comparison
equal
deleted
inserted
replaced
166:d4ee015fcee4 | 167:c51246bc679d |
---|---|
109 | 109 |
110 session.streamid = uuid_gen(); | 110 session.streamid = uuid_gen(); |
111 print(session, session.from_host, "incoming s2s stream opened"); | 111 print(session, session.from_host, "incoming s2s stream opened"); |
112 send("<?xml version='1.0'?>"); | 112 send("<?xml version='1.0'?>"); |
113 send(format("<stream:stream xmlns='jabber:server' xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s'>", session.streamid, session.to_host)); | 113 send(format("<stream:stream xmlns='jabber:server' xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s'>", session.streamid, session.to_host)); |
114 if session.from_host then | |
115 -- Need to perform dialback to check identity | |
116 print("to: "..tostring(attr.to).." from: "..tostring(attr.from)); | |
117 print("Need to do dialback here you know!!"); | |
118 end | |
119 elseif session.direction == "outgoing" then | 114 elseif session.direction == "outgoing" then |
120 -- If we are just using the connection for verifying dialback keys, we won't try and auth it | 115 -- If we are just using the connection for verifying dialback keys, we won't try and auth it |
121 if not session.dialback_verifying then | 116 if not session.dialback_verifying then |
122 -- generate dialback key | 117 -- generate dialback key |
123 if not attr.id then error("stream response did not give us a streamid!!!"); end | 118 if not attr.id then error("stream response did not give us a streamid!!!"); end |