Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
6079:5cffee5b2826 | 6080:b7d1607df87d |
---|---|
192 return ctx, err; | 192 return ctx, err; |
193 end | 193 end |
194 | 194 |
195 function reload_ssl_config() | 195 function reload_ssl_config() |
196 global_ssl_config = configmanager.get("*", "ssl"); | 196 global_ssl_config = configmanager.get("*", "ssl"); |
197 if luasec_has_no_compression then | |
198 core_defaults.options.no_compression = configmanager.get("*", "ssl_compression") ~= true; | |
199 end | |
197 end | 200 end |
198 | 201 |
199 prosody.events.add_handler("config-reloaded", reload_ssl_config); | 202 prosody.events.add_handler("config-reloaded", reload_ssl_config); |
200 | 203 |
201 return _M; | 204 return _M; |