core.certmanager: Add "legacy" preset for keeping previous default settings

If anyone wants that.
This commit is contained in:
Kim Alvefur 2021-12-22 14:12:10 +01:00
parent 99a73bdcf6
commit 184b0a62cb

View file

@ -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, ...));