From 05d6f3e7136d1ca40429ccfbd87f664280551af7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 14 Apr 2014 23:00:44 +0200 Subject: certmanager: Check for non-nil values instead of true-ish values, allows removing defaults --- core/certmanager.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/certmanager.lua b/core/certmanager.lua index 9dfb8f3a..957923f5 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -69,13 +69,14 @@ function create_context(host, mode, user_ssl_config) if global_ssl_config then for option,default_value in pairs(global_ssl_config) do - if not user_ssl_config[option] then + if user_ssl_config[option] == nil then user_ssl_config[option] = default_value; end end end + for option,default_value in pairs(core_defaults) do - if not user_ssl_config[option] then + if user_ssl_config[option] == nil then user_ssl_config[option] = default_value; end end -- cgit v1.2.3