diff options
author | Arne Schwabe <arne@rfc2549.org> | 2018-01-18 13:36:49 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2018-01-18 13:36:49 +0100 |
commit | ede451791d21ca46122cb570424f77f90ee259f4 (patch) | |
tree | fd872937f7db45c5784bf4b2da53c4508c0303c0 /main/src/ovpn3/java | |
parent | 2a45dd558123c5dfdb77358efa1cb1de51b8ce10 (diff) |
Use OpenVPN for Android own route emulation
Diffstat (limited to 'main/src/ovpn3/java')
-rw-r--r-- | main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java | 6 |
1 files changed, 3 insertions, 3 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 62e3a64e..bfe0a999 100644 --- a/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java +++ b/main/src/ovpn3/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java @@ -105,7 +105,7 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable if(ipv6) mService.addRoutev6(address + "/" + prefix_length,"tun"); else - mService.addRoute(new CIDRIP(address, prefix_length)); + mService.addRoute(new CIDRIP(address, prefix_length), true); return true; } @@ -114,8 +114,8 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable if(ipv6) mService.addRoutev6(address + "/" + prefix_length, "wifi0"); else { - //TODO - mService.addRoute(address, String.valueOf(prefix_length), "1.2.3.4" , "wifi0"); + CIDRIP route = new CIDRIP(address, prefix_length); + mService.addRoute(route, false); } return true; } |