Wtf more debug

This commit is contained in:
Mygod
2019-02-01 21:49:09 +08:00
parent 7248193232
commit 43bb8af522
5 changed files with 9 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import be.mygod.vpnhotspot.widget.SmartSnackbar
import timber.log.Timber
import java.net.InterfaceAddress
class LocalOnlyInterfaceManager(val downstream: String) {
class LocalOnlyInterfaceManager(val caller: Any, val downstream: String) {
private var routing: Routing? = null
init {
@@ -21,7 +21,7 @@ class LocalOnlyInterfaceManager(val downstream: String) {
private fun initRouting(owner: InterfaceAddress? = null) {
routing = try {
Routing(downstream, owner).apply {
Routing(caller, downstream, owner).apply {
try {
ipForward() // local only interfaces need to enable ip_forward
forward()