mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
core.certmanager: Add "legacy" preset for keeping previous default settings
If anyone wants that.
This commit is contained in:
parent
99a73bdcf6
commit
184b0a62cb
1 changed files with 3 additions and 1 deletions
|
@ -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, ...));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue