mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
mod_s2s: to/from attributes are required on s2s stream headers. Set them to '' when not available. Fixes #468.
This commit is contained in:
parent
63789fc738
commit
bfbcd081de
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ function session_open_stream(session, from, to)
|
||||||
version = session.version and (session.version > 0 and "1.0" or nil),
|
version = session.version and (session.version > 0 and "1.0" or nil),
|
||||||
["xml:lang"] = 'en',
|
["xml:lang"] = 'en',
|
||||||
id = session.streamid,
|
id = session.streamid,
|
||||||
from = from, to = to,
|
from = from or "", to = to or "",
|
||||||
}
|
}
|
||||||
if not from or (hosts[from] and hosts[from].modules.dialback) then
|
if not from or (hosts[from] and hosts[from].modules.dialback) then
|
||||||
attr["xmlns:db"] = 'jabber:server:dialback';
|
attr["xmlns:db"] = 'jabber:server:dialback';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue