aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 9b33bf72..6f0a1f59 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -23,9 +23,9 @@ local default_ssl_config = configmanager.get("*", "core", "ssl") or {};
local default_capath = "/etc/ssl/certs";
function create_context(host, mode, config)
- if not ssl then return nil; end
-
local user_ssl_config = config and config.core.ssl or default_ssl_config;
+
+ if not(ssl and user_ssl_config) then return nil; end
local ssl_config = {
mode = mode;