Fix DNS not updated onLost

This commit is contained in:
Mygod
2018-10-03 13:53:57 +08:00
parent 1eb84bf1a3
commit 408c84f8d7

View File

@@ -95,6 +95,8 @@ class Routing(val downstream: String, ownerAddress: InterfaceAddress? = null) {
TrafficRecorder.update() // record stats before removing rules to prevent stats losing
subrouting.revert()
this.subrouting = null
dns = emptyList()
updateDnsRoute()
}
}
private val fallbackUpstream = object : Upstream(RULE_PRIORITY_UPSTREAM_FALLBACK) {