Wed, 14 Jul 2010 16:24:15 +0100
certmanager: Fix to handle the case of no SSL configuration at all
core/certmanager.lua | file | annotate | diff | comparison | revisions |
--- a/core/certmanager.lua Thu Jul 15 11:28:31 2010 +0500 +++ b/core/certmanager.lua Wed Jul 14 16:24:15 2010 +0100 @@ -23,9 +23,9 @@ 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;