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

Commit

Permalink
Allow empty federation_certificate_verification_whitelist (#6849)
Browse files Browse the repository at this point in the history
* commit 'bce557175':
  Allow empty federation_certificate_verification_whitelist (#6849)
  • Loading branch information
anoadragon453 committed Mar 23, 2020
2 parents 693425b + bce5571 commit 29102e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/6849.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Synapse refusing to start if `federation_certificate_verification_whitelist` option is blank.
2 changes: 2 additions & 0 deletions synapse/config/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def read_config(self, config: dict, config_dir_path: str, **kwargs):
fed_whitelist_entries = config.get(
"federation_certificate_verification_whitelist", []
)
if fed_whitelist_entries is None:
fed_whitelist_entries = []

# Support globs (*) in whitelist values
self.federation_certificate_verification_whitelist = [] # type: List[str]
Expand Down

0 comments on commit 29102e0

Please sign in to comment.