Refine errorMatcher for IpMonitor again

This commit is contained in:
Mygod
2022-02-27 16:30:36 -05:00
parent f136770e04
commit e710b8e67d

View File

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