From 0995ae9c586ba5dfd376519df13d5336a9025558 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 16 Jan 2018 11:18:32 +0100 Subject: Don't ignore redirect gateway from OpenVPN3 (closes #824) --- main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main/src/ovpn3/java') diff --git a/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java b/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java index fee47664..8ff32027 100644 --- a/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java +++ b/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java @@ -166,7 +166,12 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable @Override public boolean tun_builder_reroute_gw(boolean ipv4, boolean ipv6, long flags) { - //ignore + if (ipv4) + mService.addRoute("0.0.0.0", "0.0.0.0", "127.0.0.1", OpenVPNService.VPNSERVICE_TUN); + + if (ipv6) + mService.addRoutev6("::/0", OpenVPNService.VPNSERVICE_TUN); + return true; } -- cgit v1.2.3