summary refs log tree commit diff
path: root/synapse/http/federation/matrix_federation_agent.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-22 19:02:12 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-22 19:02:12 +0100
commitd06a48b4bed8c17c82812ec2993c0d3766bda050 (patch)
tree773d04d8c0c4d5178947bf7c9eea32dbc060e504 /synapse/http/federation/matrix_federation_agent.py
parentMerge commit 'e288499c6' into anoa/dinsic_release_1_31_0 (diff)
parentFix escaping of braces in OIDC sample config. (#9317) (diff)
downloadsynapse-d06a48b4bed8c17c82812ec2993c0d3766bda050.tar.xz
Merge commit '2ab6e67ab' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/http/federation/matrix_federation_agent.py')
-rw-r--r--synapse/http/federation/matrix_federation_agent.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/http/federation/matrix_federation_agent.py b/synapse/http/federation/matrix_federation_agent.py

index 4c06a117d3..113fd47134 100644 --- a/synapse/http/federation/matrix_federation_agent.py +++ b/synapse/http/federation/matrix_federation_agent.py
@@ -323,12 +323,19 @@ class MatrixHostnameEndpoint: if port or _is_ip_literal(host): return [Server(host, port or 8448)] + logger.debug("Looking up SRV record for %s", host.decode(errors="replace")) server_list = await self._srv_resolver.resolve_service(b"_matrix._tcp." + host) if server_list: + logger.debug( + "Got %s from SRV lookup for %s", + ", ".join(map(str, server_list)), + host.decode(errors="replace"), + ) return server_list # No SRV records, so we fallback to host and 8448 + logger.debug("No SRV records for %s", host.decode(errors="replace")) return [Server(host, 8448)]