Add new error matching in IpMonitor

This commit is contained in:
Mygod
2022-02-21 20:45:45 -05:00
parent f9db79cb1f
commit 61efc79e9a

View File

@@ -25,7 +25,7 @@ abstract class IpMonitor {
companion object {
const val KEY = "service.ipMonitor"
// https://android.googlesource.com/platform/external/iproute2/+/7f7a711/lib/libnetlink.c#493
private val errorMatcher = ("(^Cannot bind netlink socket: |" +
private val errorMatcher = ("(^Cannot bind netlink socket: |^request send failed: |" +
"Dump (was interrupted and may be inconsistent.|terminated)$)").toRegex()
var currentMode: Mode
get() {