diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-22 14:12:10 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-22 14:12:10 +0100 |
commit | 184b0a62cb0c14f5026964cec643d9ad83df3c1f (patch) | |
tree | f2d5574daf519dfe5d533fb098529ab4b58d4b4f | |
parent | 99a73bdcf62f76d3111e1a25710ff772d35ff1ac (diff) | |
download | prosody-184b0a62cb0c14f5026964cec643d9ad83df3c1f.tar.gz prosody-184b0a62cb0c14f5026964cec643d9ad83df3c1f.zip |
core.certmanager: Add "legacy" preset for keeping previous default settings
If anyone wants that.
-rw-r--r-- | core/certmanager.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua index a2d76671..1f5d8693 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -344,7 +344,9 @@ local function create_context(host, mode, ...) }); cfg:apply(global_ssl_config); local preset = configmanager.get("*", "ssl_preset") or "intermediate"; - cfg:apply(mozilla_ssl_configs[preset]); + if preset ~= "legacy" then + cfg:apply(mozilla_ssl_configs[preset]); + end for i = select('#', ...), 1, -1 do cfg:apply(select(i, ...)); |