From 911e392006b81a6ab40e05dd433d043c9818423f Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 5 Aug 2017 15:17:10 +0200 Subject: [PATCH] update mini dns --- build.gradle | 2 +- src/main/java/eu/siacs/conversations/utils/Resolver.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 97b694b7a..5c077f5cf 100644 --- a/build.gradle +++ b/build.gradle @@ -34,7 +34,7 @@ dependencies { compile 'org.gnu.inet:libidn:1.15' compile 'com.google.zxing:core:3.2.1' compile 'com.google.zxing:android-integration:3.2.1' - compile 'de.measite.minidns:minidns-hla:0.2.1' + compile 'de.measite.minidns:minidns-hla:0.2.2' compile 'de.timroes.android:EnhancedListView:0.3.4' compile 'me.leolin:ShortcutBadger:1.1.17@aar' compile 'com.kyleduo.switchbutton:library:1.2.8' diff --git a/src/main/java/eu/siacs/conversations/utils/Resolver.java b/src/main/java/eu/siacs/conversations/utils/Resolver.java index 0298a6dfe..171da86a2 100644 --- a/src/main/java/eu/siacs/conversations/utils/Resolver.java +++ b/src/main/java/eu/siacs/conversations/utils/Resolver.java @@ -113,8 +113,7 @@ public class Resolver { } List list = new ArrayList<>(); try { - //TODO fix the DNSName.from(srv.name.toString() workaround once minidns 0.2.2 is out - ResolverResult results = resolveWithFallback(DNSName.from(srv.name.toString()),type, authenticated); + ResolverResult results = resolveWithFallback(srv.name,type, authenticated); for (D record : results.getAnswersOrEmptySet()) { Result resolverResult = Result.fromRecord(srv, directTls); resolverResult.authenticated = results.isAuthenticData() && authenticated;