Changeset

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
parents 6079:5cffee5b2826
children 6081:19ada596aec4 6082:d0e824a21861
files core/certmanager.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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);