Fix DNS route not cleaned
This commit is contained in:
@@ -298,6 +298,7 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh
|
|||||||
Timber.i("Stopped routing for $downstream by $caller")
|
Timber.i("Stopped routing for $downstream by $caller")
|
||||||
TrafficRecorder.update() // record stats before exiting to prevent stats losing
|
TrafficRecorder.update() // record stats before exiting to prevent stats losing
|
||||||
clients.values.forEach { it.close() }
|
clients.values.forEach { it.close() }
|
||||||
|
currentDns?.transaction?.revert()
|
||||||
fallbackUpstream.subrouting?.transaction?.revert()
|
fallbackUpstream.subrouting?.transaction?.revert()
|
||||||
upstream.subrouting?.transaction?.revert()
|
upstream.subrouting?.transaction?.revert()
|
||||||
transaction.revert()
|
transaction.revert()
|
||||||
|
|||||||
Reference in New Issue
Block a user