diff --git a/src/main/java/io/kamax/mxisd/matrix/HomeserverFederationResolver.java b/src/main/java/io/kamax/mxisd/matrix/HomeserverFederationResolver.java index 5677fc31..235ea3ed 100644 --- a/src/main/java/io/kamax/mxisd/matrix/HomeserverFederationResolver.java +++ b/src/main/java/io/kamax/mxisd/matrix/HomeserverFederationResolver.java @@ -205,6 +205,7 @@ public URL resolve(String domain) { if (s4.isPresent()) { URL dest = s4.get(); log.info("Resolution of {} via DNS SRV record to {}", domain, dest); + return dest; } URL dest = build(domain + ":" + getDefaultPort());