diff options
author | Kim Alvefur <zash@zash.se> | 2023-05-03 18:02:11 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-05-03 18:02:11 +0200 |
commit | 4d2ecf1d51d8a12a2280507ae5c526e777123150 (patch) | |
tree | eb6f9d4488d308978b87aceb1c7a62d750d6de86 /plugins/mod_c2s.lua | |
parent | 8c6116120bdd0431ef104983e105bcffd0f87266 (diff) | |
download | prosody-4d2ecf1d51d8a12a2280507ae5c526e777123150.tar.gz prosody-4d2ecf1d51d8a12a2280507ae5c526e777123150.zip |
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.
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r-- | plugins/mod_c2s.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index 871875e9..9af21759 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -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 |