Mercurial > prosody-hg
comparison core/certmanager.lua @ 8159:3850993a9bda
certmanager: Update the 'certificates' option after the config has been reloaded (fixes #929)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 01 Jun 2017 14:03:50 +0200 |
| parents | d018ffc9238c |
| children | db063671b73e |
comparison
equal
deleted
inserted
replaced
| 8156:745e0a783055 | 8159:3850993a9bda |
|---|---|
| 214 return ctx, err, user_ssl_config; | 214 return ctx, err, user_ssl_config; |
| 215 end | 215 end |
| 216 | 216 |
| 217 local function reload_ssl_config() | 217 local function reload_ssl_config() |
| 218 global_ssl_config = configmanager.get("*", "ssl"); | 218 global_ssl_config = configmanager.get("*", "ssl"); |
| 219 global_certificates = configmanager.get("*", "certificates") or "certs"; | |
| 219 if luasec_has.no_compression then | 220 if luasec_has.no_compression then |
| 220 core_defaults.options.no_compression = configmanager.get("*", "ssl_compression") ~= true; | 221 core_defaults.options.no_compression = configmanager.get("*", "ssl_compression") ~= true; |
| 221 end | 222 end |
| 222 end | 223 end |
| 223 | 224 |
