summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-04-08 13:39:07 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-04-08 13:39:07 +0100
commit669199876de27c5667a6eecba035b8a76fc2b0e6 (patch)
tree29c2ec248d2d5a22843e84fd6eb984d190a83c13 /synapse
parentdomain globbing (diff)
downloadsynapse-669199876de27c5667a6eecba035b8a76fc2b0e6.tar.xz
Add comment and simplify diff
Diffstat (limited to 'synapse')
-rw-r--r--synapse/config/server.py2
-rw-r--r--synapse/config/tls.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py

index 09f05173d9..654d410fbf 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py
@@ -111,11 +111,11 @@ class ServerConfig(Config): self.admin_contact = config.get("admin_contact", None) # FIXME: federation_domain_whitelist needs sytests + self.federation_domain_whitelist = None federation_domain_whitelist = config.get( "federation_domain_whitelist", None, ) - self.federation_domain_whitelist = None if federation_domain_whitelist is not None: # turn the whitelist into a hash for speed of lookup self.federation_domain_whitelist = {} diff --git a/synapse/config/tls.py b/synapse/config/tls.py
index 6f76cf80b0..ea54bd0793 100644 --- a/synapse/config/tls.py +++ b/synapse/config/tls.py
@@ -98,6 +98,9 @@ class TlsConfig(Config): self.federation_ca_trust_root = None if custom_ca_list is not None: if len(custom_ca_list) == 0: + # A trustroot cannot be generated without any CA certificates. + # Raise an error if this option has been specified without any + # corresponding certificates. raise ConfigError("federation_custom_ca_list specified without " "any certificate files")