Changeset

12098:9591b838e3b0

core.certmanager: Add "legacy" preset for keeping previous default settings If anyone wants that.
author Kim Alvefur <zash@zash.se>
date Wed, 22 Dec 2021 14:12:10 +0100
parents 12097:9c794d5f6f8d
children 12099:b344edad61d3
files core/certmanager.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Wed Nov 03 12:23:29 2021 +0100
+++ b/core/certmanager.lua	Wed Dec 22 14:12:10 2021 +0100
@@ -344,7 +344,9 @@
 	});
 	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, ...));