mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 22:27:38 +03:00
mod_c2s,mod_s2s: Fix tag name for SLA (thanks mjk)
The (still not published) XEP-xxxx: Stream Limits Advertisement uses the element <max-bytes/> to advertise the maximum octet size of top level stream elements. "size" was probably a leftover of an even earlier version of the (Proto)XEP.
This commit is contained in:
parent
8c6116120b
commit
4d2ecf1d51
2 changed files with 5 additions and 5 deletions
plugins
|
@ -133,7 +133,7 @@ function stream_callbacks._streamopened(session, attr)
|
|||
if stanza_size_limit then
|
||||
features:reset();
|
||||
features:tag("limits", { xmlns = "urn:xmpp:stream-limits:0" })
|
||||
:text_tag("max-size", string.format("%d", stanza_size_limit)):up();
|
||||
:text_tag("max-bytes", string.format("%d", stanza_size_limit)):up();
|
||||
end
|
||||
send(features);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue