Add light ip neigh monitoring mode to reduce root requests

This commit is contained in:
Mygod
2020-06-21 00:32:09 -04:00
parent 75f85216fa
commit b1644629b0
5 changed files with 62 additions and 39 deletions

View File

@@ -348,7 +348,7 @@ class Routing(private val caller: Any, private val downstream: String,
ipRule("unreachable", RULE_PRIORITY_UPSTREAM_DISABLE_SYSTEM)
}
UpstreamMonitor.registerCallback(upstream)
IpNeighbourMonitor.registerCallback(this)
IpNeighbourMonitor.registerCallback(this, true)
}
fun revert() {
stop()