aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-22 14:12:10 +0100
committerKim Alvefur <zash@zash.se>2021-12-22 14:12:10 +0100
commit184b0a62cb0c14f5026964cec643d9ad83df3c1f (patch)
treef2d5574daf519dfe5d533fb098529ab4b58d4b4f /core
parent99a73bdcf62f76d3111e1a25710ff772d35ff1ac (diff)
downloadprosody-184b0a62cb0c14f5026964cec643d9ad83df3c1f.tar.gz
prosody-184b0a62cb0c14f5026964cec643d9ad83df3c1f.zip
core.certmanager: Add "legacy" preset for keeping previous default settings
If anyone wants that.
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua4
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, ...));