Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 6600:b1c84d220c40 0.9.8
mod_s2s: to/from attributes are required on s2s stream headers. Set them to '' when not available. Fixes #468.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 24 Mar 2015 16:03:37 +0000 |
parent | 6471:95d93c4f9d40 |
child | 6602:61b6a4fc65f1 |
child | 6607:64e6b88b6b21 |
child | 6683:873ad1023eb0 |
comparison
equal
deleted
inserted
replaced
6599:f93e1b2ec327 | 6600:b1c84d220c40 |
---|---|
510 ["xmlns:stream"] = 'http://etherx.jabber.org/streams', | 510 ["xmlns:stream"] = 'http://etherx.jabber.org/streams', |
511 xmlns = 'jabber:server', | 511 xmlns = 'jabber:server', |
512 version = session.version and (session.version > 0 and "1.0" or nil), | 512 version = session.version and (session.version > 0 and "1.0" or nil), |
513 ["xml:lang"] = 'en', | 513 ["xml:lang"] = 'en', |
514 id = session.streamid, | 514 id = session.streamid, |
515 from = from, to = to, | 515 from = from or "", to = to or "", |
516 } | 516 } |
517 if not from or (hosts[from] and hosts[from].modules.dialback) then | 517 if not from or (hosts[from] and hosts[from].modules.dialback) then |
518 attr["xmlns:db"] = 'jabber:server:dialback'; | 518 attr["xmlns:db"] = 'jabber:server:dialback'; |
519 end | 519 end |
520 | 520 |