update mini dns

This commit is contained in:
Daniel Gultsch 2017-08-05 15:17:10 +02:00
parent b925f436fd
commit 911e392006
2 changed files with 2 additions and 3 deletions

View file

@ -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'

View file

@ -113,8 +113,7 @@ public class Resolver {
}
List<Result> list = new ArrayList<>();
try {
//TODO fix the DNSName.from(srv.name.toString() workaround once minidns 0.2.2 is out
ResolverResult<D> results = resolveWithFallback(DNSName.from(srv.name.toString()),type, authenticated);
ResolverResult<D> results = resolveWithFallback(srv.name,type, authenticated);
for (D record : results.getAnswersOrEmptySet()) {
Result resolverResult = Result.fromRecord(srv, directTls);
resolverResult.authenticated = results.isAuthenticData() && authenticated;