Software /
code /
prosody
Comparison
plugins/mod_s2s.lua @ 12330:38b5b05407be
various: Require encryption by default for real
These options have been specified (and enabled) in the default config file for
a long time. However if unspecified in the config, they were not enabled. Now
they are.
This may result in a change of behaviour for people using very old config
files that lack the require_encryption options. But that's what we want.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Dec 2021 16:23:40 +0100 |
parent | 12301:4f1fe6eb1ddb |
child | 12362:0fd58f54d653 |
comparison
equal
deleted
inserted
replaced
12329:c980210ca095 | 12330:38b5b05407be |
---|---|
38 local stream_close_timeout = module:get_option_number("s2s_close_timeout", 5); | 38 local stream_close_timeout = module:get_option_number("s2s_close_timeout", 5); |
39 local opt_keepalives = module:get_option_boolean("s2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true)); | 39 local opt_keepalives = module:get_option_boolean("s2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true)); |
40 local secure_auth = module:get_option_boolean("s2s_secure_auth", false); -- One day... | 40 local secure_auth = module:get_option_boolean("s2s_secure_auth", false); -- One day... |
41 local secure_domains, insecure_domains = | 41 local secure_domains, insecure_domains = |
42 module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; | 42 module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; |
43 local require_encryption = module:get_option_boolean("s2s_require_encryption", false); | 43 local require_encryption = module:get_option_boolean("s2s_require_encryption", true); |
44 local stanza_size_limit = module:get_option_number("s2s_stanza_size_limit", 1024*512); | 44 local stanza_size_limit = module:get_option_number("s2s_stanza_size_limit", 1024*512); |
45 | 45 |
46 local measure_connections_inbound = module:metric( | 46 local measure_connections_inbound = module:metric( |
47 "gauge", "connections_inbound", "", | 47 "gauge", "connections_inbound", "", |
48 "Established incoming s2s connections", | 48 "Established incoming s2s connections", |