Commit 06c46d30 authored by Mygod's avatar Mygod

Suppress network unspecified exceptions

parent 21f07a48
......@@ -138,7 +138,7 @@ sealed class DnsResolverCompat {
Type.AAAA -> true
Type.PTR -> {
// Android does not provide a PTR lookup API for Network prior to Android 10
if (networkSpecified) throw UnsupportedOperationException()
if (networkSpecified) throw IOException(UnsupportedOperationException("Network unspecified"))
val ip = try {
ReverseMap.fromName(question.name)
} catch (e: IOException) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment