diff options
author | Arne Schwabe <arne@rfc2549.org> | 2018-01-16 11:18:32 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2018-01-16 11:18:32 +0100 |
commit | 0995ae9c586ba5dfd376519df13d5336a9025558 (patch) | |
tree | 3948d2906953a31112bc575b84dc982ffe5e259e /main/src/ovpn3/java | |
parent | c627e2a2b9b8a2c4ed158c0b742b532110a52597 (diff) |
Don't ignore redirect gateway from OpenVPN3 (closes #824)
Diffstat (limited to 'main/src/ovpn3/java')
-rw-r--r-- | main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |