mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 14:49:22 -05:00
Allow empty federation_certificate_verification_whitelist (#6849)
This commit is contained in:
parent
99fcc96289
commit
bce557175b
1
changelog.d/6849.bugfix
Normal file
1
changelog.d/6849.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix Synapse refusing to start if `federation_certificate_verification_whitelist` option is blank.
|
@ -109,6 +109,8 @@ class TlsConfig(Config):
|
|||||||
fed_whitelist_entries = config.get(
|
fed_whitelist_entries = config.get(
|
||||||
"federation_certificate_verification_whitelist", []
|
"federation_certificate_verification_whitelist", []
|
||||||
)
|
)
|
||||||
|
if fed_whitelist_entries is None:
|
||||||
|
fed_whitelist_entries = []
|
||||||
|
|
||||||
# Support globs (*) in whitelist values
|
# Support globs (*) in whitelist values
|
||||||
self.federation_certificate_verification_whitelist = [] # type: List[str]
|
self.federation_certificate_verification_whitelist = [] # type: List[str]
|
||||||
|
Loading…
Reference in New Issue
Block a user