From ef0098e45d739dcbbf15f6c5cf70a18ddfd875a2 Mon Sep 17 00:00:00 2001 From: Mygod Date: Thu, 22 Feb 2018 01:35:08 -0800 Subject: [PATCH] Add whatever is helpful --- .../java/be/mygod/vpnhotspot/net/Routing.kt | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) 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 4533171c..3e552172 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt @@ -31,15 +31,18 @@ class Routing(val upstream: String?, val downstream: String, ownerAddress: InetA "quiet while ip rule del priority 17900; do done") fun dump() = loggerSu(""" - |echo iptables - |sh -c 'exec -a iptables-save iptables' - |echo - |echo iptables -t nat - |sh -c 'exec -a iptables-save iptables -t nat' - |echo - |echo ip rule - |ip rule - """.trimMargin()) + |echo logcat-su + |logcat -d + |echo + |echo iptables + |sh -c 'exec -a iptables-save iptables' + |echo + |echo iptables -t nat + |sh -c 'exec -a iptables-save iptables -t nat' + |echo + |echo ip rule + |ip rule + """.trimMargin()) } class InterfaceNotFoundException : IOException() {