Changeset

6073:4a1fdd72e98a

certmanager: Check for non-nil values instead of true-ish values, allows removing defaults
author Kim Alvefur <zash@zash.se>
date Mon, 14 Apr 2014 23:00:44 +0200
parents 6071:420c0d3b8583
children 6074:6498554adb0d
files core/certmanager.lua
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Tue Apr 15 18:07:45 2014 +0100
+++ b/core/certmanager.lua	Mon Apr 14 23:00:44 2014 +0200
@@ -69,13 +69,14 @@
 
 	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