# HG changeset patch # User Kim Alvefur # Date 1397509244 -7200 # Node ID 4a1fdd72e98a0b68347d2804febb78f1757126cc # Parent 420c0d3b85832d772a05b18aaee1e3d8dfe5e20e certmanager: Check for non-nil values instead of true-ish values, allows removing defaults diff -r 420c0d3b8583 -r 4a1fdd72e98a core/certmanager.lua --- 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