aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-04-15 01:02:56 +0200
committerKim Alvefur <zash@zash.se>2014-04-15 01:02:56 +0200
commit42c69fe33960001f3183582d0fceb57cbae72cb3 (patch)
tree0340640f6a0e72d656300759d42e68a50e4935ce /core
parent1d19874ae8b891a5b1d0e9714af6e126fd86dd4a (diff)
downloadprosody-42c69fe33960001f3183582d0fceb57cbae72cb3.tar.gz
prosody-42c69fe33960001f3183582d0fceb57cbae72cb3.zip
certmanager: Update ssl_compression when config is reloaded
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 012eb933..8f1e1520 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -194,6 +194,9 @@ end
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);