Fix DNS not updated onLost
This commit is contained in:
@@ -95,6 +95,8 @@ class Routing(val downstream: String, ownerAddress: InterfaceAddress? = null) {
|
|||||||
TrafficRecorder.update() // record stats before removing rules to prevent stats losing
|
TrafficRecorder.update() // record stats before removing rules to prevent stats losing
|
||||||
subrouting.revert()
|
subrouting.revert()
|
||||||
this.subrouting = null
|
this.subrouting = null
|
||||||
|
dns = emptyList()
|
||||||
|
updateDnsRoute()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private val fallbackUpstream = object : Upstream(RULE_PRIORITY_UPSTREAM_FALLBACK) {
|
private val fallbackUpstream = object : Upstream(RULE_PRIORITY_UPSTREAM_FALLBACK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user