diff options
author | Kim Alvefur <zash@zash.se> | 2014-04-14 23:00:44 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-04-14 23:00:44 +0200 |
commit | 5dc9451f0eaf11fb38b52c0ad9bcd4aaa17b05e2 (patch) | |
tree | 4c9b09bfa0c609022621ad3f40d1ce92d7c2e124 | |
parent | 98f1c94f12e06d9b1326f5c7f321958ce4092954 (diff) | |
download | prosody-5dc9451f0eaf11fb38b52c0ad9bcd4aaa17b05e2.tar.gz prosody-5dc9451f0eaf11fb38b52c0ad9bcd4aaa17b05e2.zip |
certmanager: Check for non-nil values instead of true-ish values, allows removing defaults
-rw-r--r-- | core/certmanager.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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 |