Unverified Commit e53d9642 authored by Mygod's avatar Mygod Committed by GitHub

Do not suppress IOException

parent 9711da1c
...@@ -86,8 +86,8 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro ...@@ -86,8 +86,8 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
if (profile.host.parseNumericAddress() == null) { if (profile.host.parseNumericAddress() == null) {
profile.host = try { profile.host = try {
service.resolver(profile.host).firstOrNull() service.resolver(profile.host).firstOrNull()
} catch (_: IOException) { } catch (e: IOException) {
null throw UnknownHostException().initCause(e)
}?.hostAddress ?: throw UnknownHostException() }?.hostAddress ?: throw UnknownHostException()
} }
} }
......
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