Commit 290aa646 authored by Mygod's avatar Mygod

Suppress more IOExceptions in LocalDnsServer

parent c68c3cb9
...@@ -62,7 +62,7 @@ dependencies { ...@@ -62,7 +62,7 @@ dependencies {
api 'com.google.firebase:firebase-config:18.0.0' api 'com.google.firebase:firebase-config:18.0.0'
api 'com.google.firebase:firebase-core:17.0.0' api 'com.google.firebase:firebase-core:17.0.0'
api 'dnsjava:dnsjava:2.1.9' api 'dnsjava:dnsjava:2.1.9'
api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1' api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0-M1'
api 'org.connectbot.jsocks:jsocks:1.0.0' api 'org.connectbot.jsocks:jsocks:1.0.0'
kapt "androidx.room:room-compiler:$roomVersion" kapt "androidx.room:room-compiler:$roomVersion"
testImplementation "junit:junit:$junitVersion" testImplementation "junit:junit:$junitVersion"
......
...@@ -107,7 +107,7 @@ class LocalDnsServer(private val localResolver: suspend (String) -> Array<InetAd ...@@ -107,7 +107,7 @@ class LocalDnsServer(private val localResolver: suspend (String) -> Array<InetAd
val request = try { val request = try {
Message(packet) Message(packet)
} catch (e: IOException) { // we cannot parse the message, do not attempt to handle it at all } catch (e: IOException) { // we cannot parse the message, do not attempt to handle it at all
printLog(e) Crashlytics.log(Log.WARN, TAG, e.message)
return forward(packet) return forward(packet)
} }
return supervisorScope { return supervisorScope {
......
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