Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Be tolerant of blank TLS fingerprints config (#4589)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl authored and richvdh committed Feb 11, 2019
1 parent b201149 commit 4ffd10f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/4589.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Synapse is now tolerant of the tls_fingerprints option being None or not specified.
6 changes: 5 additions & 1 deletion synapse/config/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def read_config(self, 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)

Expand Down

0 comments on commit 4ffd10f

Please sign in to comment.