Software /
code /
prosody
Diff
core/certmanager.lua @ 6080:b7d1607df87d
certmanager: Update ssl_compression when config is reloaded
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Apr 2014 01:02:56 +0200 |
parent | 6079:5cffee5b2826 |
child | 6087:821756a862b0 |
line wrap: on
line diff
--- a/core/certmanager.lua Tue Apr 15 00:49:17 2014 +0200 +++ b/core/certmanager.lua Tue Apr 15 01:02:56 2014 +0200 @@ -194,6 +194,9 @@ function reload_ssl_config() global_ssl_config = configmanager.get("*", "ssl"); + if luasec_has_no_compression then + core_defaults.options.no_compression = configmanager.get("*", "ssl_compression") ~= true; + end end prosody.events.add_handler("config-reloaded", reload_ssl_config);