diff options
author | Kim Alvefur <zash@zash.se> | 2023-11-02 09:39:03 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-11-02 09:39:03 +0100 |
commit | dc6ac6fe4ec6a3ac96c343a7c939a44022c9b677 (patch) | |
tree | eeb2ec66df08950e217649a1bd6eaaabe7b010d3 | |
parent | 6c0ba09487584b9f0f0a91eca23ef11cd3d27f5b (diff) | |
download | prosody-dc6ac6fe4ec6a3ac96c343a7c939a44022c9b677.tar.gz prosody-dc6ac6fe4ec6a3ac96c343a7c939a44022c9b677.zip |
mod_s2s: Automagically enable DANE for s2sin if 'use_dane' is enabled
Simplifies configuration, only one already existing boolean to flip.
-rw-r--r-- | plugins/mod_s2s.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua index 33659b59..e7c80ddb 100644 --- a/plugins/mod_s2s.lua +++ b/plugins/mod_s2s.lua @@ -95,6 +95,12 @@ local s2s_service_options = { }; local s2s_service_options_mt = { __index = s2s_service_options } +if module:get_option_boolean("use_dane", false) then + -- DANE is supported in net.connect but only for outgoing connections, + -- to authenticate incoming connections with DANE we need + module:depends("s2s_auth_dane_in"); +end + module:hook("stats-update", function () measure_connections_inbound:clear() measure_connections_outbound:clear() |