mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-04 20:39:01 -04:00
Fix error when loading cert if tls is disabled (#4618)
If TLS is disabled, it should not be an error if no cert is given. Fixes #4554.
This commit is contained in:
parent
46b8a79b3a
commit
32b781bfe2
4 changed files with 47 additions and 18 deletions
|
@ -65,7 +65,7 @@ s4niecZKPBizL6aucT59CsunNmmb5Glq8rlAcU+1ZTZZzGYqVYhF6axB9Qg=
|
|||
|
||||
t = TestConfig()
|
||||
t.read_config(config)
|
||||
t.read_certificate_from_disk()
|
||||
t.read_certificate_from_disk(require_cert_and_key=False)
|
||||
|
||||
warnings = self.flushWarnings()
|
||||
self.assertEqual(len(warnings), 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue