mod_s2s: to/from attributes are required on s2s stream headers. Set them to '' when...
authorMatthew Wild <mwild1@gmail.com>
Tue, 24 Mar 2015 16:03:37 +0000 (16:03 +0000)
committerMatthew Wild <mwild1@gmail.com>
Tue, 24 Mar 2015 16:03:37 +0000 (16:03 +0000)
plugins/mod_s2s/mod_s2s.lua

index d8846a6f66d591b409176ea8666f0f0d849161d3..f5297efee9450c8b213ed9025c43482c6a65f965 100644 (file)
@@ -512,7 +512,7 @@ function session_open_stream(session, from, to)
                version = session.version and (session.version > 0 and "1.0" or nil),
                ["xml:lang"] = 'en',
                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
                attr["xmlns:db"] = 'jabber:server:dialback';