mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-24 04:59:25 -05:00
Be tolerant of blank TLS fingerprints config (#4589)
This commit is contained in:
parent
b201149c7e
commit
4ffd10f46d
1
changelog.d/4589.bugfix
Normal file
1
changelog.d/4589.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Synapse is now tolerant of the tls_fingerprints option being None or not specified.
|
@ -45,7 +45,11 @@ class TlsConfig(Config):
|
||||
|
||||
self.tls_certificate_file = self.abspath(config.get("tls_certificate_path"))
|
||||
self.tls_private_key_file = self.abspath(config.get("tls_private_key_path"))
|
||||
self._original_tls_fingerprints = config["tls_fingerprints"]
|
||||
self._original_tls_fingerprints = config.get("tls_fingerprints", [])
|
||||
|
||||
if self._original_tls_fingerprints is None:
|
||||
self._original_tls_fingerprints = []
|
||||
|
||||
self.tls_fingerprints = list(self._original_tls_fingerprints)
|
||||
self.no_tls = config.get("no_tls", False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user