catch runtime exceptions from minidns
This commit is contained in:
parent
8de81e0bc8
commit
19c1484053
|
@ -48,13 +48,13 @@ public class Resolver {
|
||||||
List<Result> results = new ArrayList<>();
|
List<Result> results = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
results.addAll(resolveSrv(domain,true));
|
results.addAll(resolveSrv(domain,true));
|
||||||
} catch (IOException e) {
|
} catch (Throwable throwable) {
|
||||||
Log.d(Config.LOGTAG,Resolver.class.getSimpleName()+": "+e.getMessage());
|
Log.d(Config.LOGTAG,Resolver.class.getSimpleName()+": error resolving SRV record (direct TLS)",throwable);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
results.addAll(resolveSrv(domain,false));
|
results.addAll(resolveSrv(domain,false));
|
||||||
} catch (IOException e) {
|
} catch (Throwable throwable) {
|
||||||
Log.d(Config.LOGTAG,Resolver.class.getSimpleName()+": "+e.getMessage());
|
Log.d(Config.LOGTAG,Resolver.class.getSimpleName()+": error resolving SRV record (STARTTLS)",throwable);
|
||||||
}
|
}
|
||||||
if (results.size() == 0) {
|
if (results.size() == 0) {
|
||||||
results.addAll(resolveNoSrvRecords(DNSName.from(domain),true));
|
results.addAll(resolveNoSrvRecords(DNSName.from(domain),true));
|
||||||
|
|
Loading…
Reference in New Issue