summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/blinkt
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2020-01-25 14:40:13 -0600
committercyberta <cyberta@riseup.net>2020-01-25 14:40:13 -0600
commit20f906ef16d10d7f69a7355bd590ae99cb64723b (patch)
tree7ac1f22830665496ff742b097f53d5b73ba3c74f /app/src/main/java/de/blinkt
parente29188b051aa57939e56d5fc9110eddb1d9a4bdf (diff)
add and remove configuring tethering rules on vpn start and shutdown
Diffstat (limited to 'app/src/main/java/de/blinkt')
-rw-r--r--app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
index 7c17bed9..a48d6477 100644
--- a/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
+++ b/app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
@@ -194,7 +194,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
VpnStatus.removeStateListener(this);
}
}
- firewallManager.shutdownFirewall();
+ firewallManager.stop();
}
private boolean runningOnAndroidTV() {
@@ -449,7 +449,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
mProcessThread.start();
}
- firewallManager.startFirewall();
+ firewallManager.start();
new Handler(getMainLooper()).post(() -> {
if (mDeviceStateReceiver != null) {