Prevent DNS lookup ctor exception

This commit is contained in:
M66B 2023-10-11 18:04:02 +02:00
parent fbc829cb19
commit 96ca9d3144
1 changed files with 3 additions and 1 deletions

View File

@ -245,7 +245,9 @@ public class DnsHelper {
record.query = name;
return result.toArray(new DnsRecord[0]);
} catch (TextParseException ex) {
} catch (Throwable ex) {
// TextParseException
// Lookup static ctor: RuntimeException("Failed to initialize resolver")
Log.e(ex);
return new DnsRecord[0];
}