Software /
code /
prosody
Diff
plugins/mod_s2s_bidi.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 | 10458:602dd1e2f399 |
child | 12809:71bd009a9789 |
line wrap: on
line diff
--- a/plugins/mod_s2s_bidi.lua Thu Feb 10 15:49:01 2022 +0000 +++ b/plugins/mod_s2s_bidi.lua Sat Dec 25 16:23:40 2021 +0100 @@ -10,7 +10,7 @@ local xmlns_bidi_feature = "urn:xmpp:features:bidi" local xmlns_bidi = "urn:xmpp:bidi"; -local require_encryption = module:get_option_boolean("s2s_require_encryption", false); +local require_encryption = module:get_option_boolean("s2s_require_encryption", true); module:hook("s2s-stream-features", function(event) local origin, features = event.origin, event.features;