From 73c3ab7888ab6438b82ea2f7716e2102db626ca5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 18 Jan 2022 11:52:35 +0100 Subject: core.certmanager: Use 'tls_profile' instead of 'tls_preset' to match documentation Confusion! Thanks Martin --- core/certmanager.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/certmanager.lua b/core/certmanager.lua index a7a44a4c..a3b37bb4 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -350,9 +350,9 @@ local function create_context(host, mode, ...) -- We can't read the password interactively when daemonized password = function() log("error", "Encrypted certificate for %s requires 'ssl' 'password' to be set in config", host); end; }); - local preset = configmanager.get("*", "tls_preset") or "intermediate"; - if preset ~= "legacy" then - cfg:apply(mozilla_ssl_configs[preset]); + local profile = configmanager.get("*", "tls_profile") or "intermediate"; + if profile ~= "legacy" then + cfg:apply(mozilla_ssl_configs[profile]); end cfg:apply(global_ssl_config); -- cgit v1.2.3