From 85d9f9e7049716c4d05703b5aa4bbc90e50ef6e0 Mon Sep 17 00:00:00 2001 From: Max Dor Date: Sat, 27 Apr 2019 20:54:02 +0200 Subject: [PATCH] Fix missing return in Homeserver endpoint discovery, skipping DNS SRV --- .../java/io/kamax/mxisd/matrix/HomeserverFederationResolver.java | 1 + 1 file changed, 1 insertion(+) 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());