diff options
author | Andrej Shadura <andrewsh@debian.org> | 2021-06-16 10:28:18 +0200 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2021-06-16 10:28:18 +0200 |
commit | 219af4a8aef838c5e3689a2aa71cf72f2fd75aa2 (patch) | |
tree | 3183d9a61335f862a9ddd3b3de2c804aaa93a6bf /synapse/app/_base.py | |
parent | 396a9dfc77fc34b77d7ef552048f22ecb94e91ea (diff) |
New upstream version 1.36.0
Diffstat (limited to 'synapse/app/_base.py')
-rw-r--r-- | synapse/app/_base.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py index 59918d78..1329af2e 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py @@ -261,13 +261,10 @@ def refresh_certificate(hs): Refresh the TLS certificates that Synapse is using by re-reading them from disk and updating the TLS context factories to use them. """ - if not hs.config.has_tls_listener(): - # attempt to reload the certs for the good of the tls_fingerprints - hs.config.read_certificate_from_disk(require_cert_and_key=False) return - hs.config.read_certificate_from_disk(require_cert_and_key=True) + hs.config.read_certificate_from_disk() hs.tls_server_context_factory = context_factory.ServerContextFactory(hs.config) if hs._listening_services: |