summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/api/server_server.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/server_server.rs b/src/api/server_server.rs
index 422da47..3a6da4f 100644
--- a/src/api/server_server.rs
+++ b/src/api/server_server.rs
@@ -472,10 +472,11 @@ async fn find_actual_destination(destination: &'_ ServerName) -> (FedDest, FedDe
}
async fn query_srv_record(hostname: &'_ str) -> Option<FedDest> {
+ let hostname = hostname.trim_end_matches('.');
if let Ok(Some(host_port)) = services()
.globals
.dns_resolver()
- .srv_lookup(format!("_matrix._tcp.{hostname}"))
+ .srv_lookup(format!("_matrix._tcp.{hostname}."))
.await
.map(|srv| {
srv.iter().next().map(|result| {