From 37337fd2ef59ffd005cc36aa32481898038db139 Mon Sep 17 00:00:00 2001 From: Mygod Date: Fri, 18 Jan 2019 11:59:11 +0800 Subject: [PATCH] Add more log --- mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt | 2 ++ 1 file changed, 2 insertions(+) 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 001857b9..4a497c5f 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt @@ -251,12 +251,14 @@ class Routing(val downstream: String, ownerAddress: InterfaceAddress? = null) : fun commit() { transaction.commit() + Timber.i("Started routing for $downstream") FallbackUpstreamMonitor.registerCallback(fallbackUpstream) UpstreamMonitor.registerCallback(upstream) IpNeighbourMonitor.registerCallback(this) } fun revert() { stop() + Timber.i("Stopped routing for $downstream") TrafficRecorder.update() // record stats before exiting to prevent stats losing clients.values.forEach { it.close() } fallbackUpstream.subrouting?.transaction?.revert()