diff options
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r-- | synapse/config/server.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 395daa3c01..23c3d14013 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -108,17 +108,17 @@ class ServerConfig(Config): "federation_domain_whitelist", None ) - # Optional proxy address for federation traffic - self.federation_request_gateway_addr = config.get( - "federation_request_gateway_addr", None - ) - # turn the whitelist into a hash for speed of lookup if federation_domain_whitelist is not None: self.federation_domain_whitelist = {} for domain in federation_domain_whitelist: self.federation_domain_whitelist[domain] = True + # Optional proxy address for federation traffic + self.federation_request_gateway_addr = config.get( + "federation_request_gateway_addr", None + ) + if self.federation_request_gateway_addr is not None: # Ensure proxy address is correctly formatted if len(self.federation_request_gateway_addr.split(':')) != 2: |