Software /
code /
prosody
Diff
plugins/mod_tls.lua @ 5378:ec3accda44d3
mod_tls: More use of config sections removed
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2013 02:35:50 +0100 |
parent | 5370:7838acadb0fa |
child | 5685:f965ac6b7ce1 |
child | 5976:872ff4851c9b |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Sat Mar 23 02:33:15 2013 +0100 +++ b/plugins/mod_tls.lua Sat Mar 23 02:35:50 2013 +0100 @@ -92,10 +92,10 @@ end); function module.load() - local ssl_config = config.rawget(module.host, "core", "ssl"); + local ssl_config = config.rawget(module.host, "ssl"); if not ssl_config then local base_host = module.host:match("%.(.*)"); - ssl_config = config.get(base_host, "core", "ssl"); + ssl_config = config.get(base_host, "ssl"); end host.ssl_ctx = create_context(host.host, "client", ssl_config); -- for outgoing connections host.ssl_ctx_in = create_context(host.host, "server", ssl_config); -- for incoming connections