Remove deprecated _matrix._tcp SRV query.

Co-authored-by: Jacob Taylor <jacob@explodie.org>
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-04-28 03:32:17 +00:00
parent 8386cbbb96
commit 258e2e3ce8

View File

@@ -318,8 +318,7 @@ impl super::Service {
#[tracing::instrument(name = "srv", level = "debug", skip(self))] #[tracing::instrument(name = "srv", level = "debug", skip(self))]
async fn query_srv_record(&self, hostname: &'_ str) -> Result<Option<FedDest>> { async fn query_srv_record(&self, hostname: &'_ str) -> Result<Option<FedDest>> {
let hostnames = let hostnames = [format!("_matrix-fed._tcp.{hostname}.")];
[format!("_matrix-fed._tcp.{hostname}."), format!("_matrix._tcp.{hostname}.")];
for hostname in hostnames { for hostname in hostnames {
self.services.server.check_running()?; self.services.server.check_running()?;