From 89559103bfe3fba2c3ed6773785f40cb9444f02d Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 4 Feb 2019 23:31:26 +0800 Subject: [PATCH] Fix DNS route not cleaned --- mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt index 71955ddb..271066f9 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt @@ -298,6 +298,7 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh Timber.i("Stopped routing for $downstream by $caller") TrafficRecorder.update() // record stats before exiting to prevent stats losing clients.values.forEach { it.close() } + currentDns?.transaction?.revert() fallbackUpstream.subrouting?.transaction?.revert() upstream.subrouting?.transaction?.revert() transaction.revert()