Software /
code /
prosody
Diff
plugins/mod_s2s.lua @ 11560:3bbb1af92514
Merge 0.11->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 13 May 2021 11:17:13 +0100 |
parent | 11558:d0e9ffccdef9 |
parent | 11526:15a3db955ad3 |
child | 11608:b2610460d9ab |
line wrap: on
line diff
--- a/plugins/mod_s2s.lua Fri May 07 16:47:58 2021 +0200 +++ b/plugins/mod_s2s.lua Thu May 13 11:17:13 2021 +0100 @@ -39,7 +39,7 @@ local secure_domains, insecure_domains = module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; local require_encryption = module:get_option_boolean("s2s_require_encryption", false); -local stanza_size_limit = module:get_option_number("s2s_stanza_size_limit"); -- TODO come up with a sensible default (util.xmppstream defaults to 10M) +local stanza_size_limit = module:get_option_number("s2s_stanza_size_limit", 1024*512); local measure_connections_inbound = module:metric( "gauge", "connections_inbound", "", @@ -343,7 +343,7 @@ end --- Helper to check that a session peer's certificate is valid -function check_cert_status(session) +local function check_cert_status(session) local host = session.direction == "outgoing" and session.to_host or session.from_host local conn = session.conn:socket() local cert