diff options
author | Arne Schwabe <arne@rfc2549.org> | 2017-07-26 16:03:26 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2017-07-26 16:03:26 +0200 |
commit | 84ec02a142c090cb2a18f74e0a9bbaacab37d7ee (patch) | |
tree | a05dfe64c6d1d40aae7919285b47a372fbbfe10f /main/src | |
parent | a4f1aa0242bc746f1eee7edc1ec65e2c15bb17b6 (diff) |
Don't ask for a gateway we don't use and need. (closes #734)
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/VpnProfile.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java index 14354a8e..7af7b519 100644 --- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java +++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java @@ -451,8 +451,12 @@ public class VpnProfile implements Serializable, Cloneable { if (!TextUtils.isEmpty(mIPv4Address)) cfg += "ifconfig " + cidrToIPAndNetmask(mIPv4Address) + "\n"; - if (!TextUtils.isEmpty(mIPv6Address)) - cfg += "ifconfig-ipv6 " + mIPv6Address + "\n"; + if (!TextUtils.isEmpty(mIPv6Address)) { + // Use our own ip as gateway since we ignore it anyway + String fakegw = mIPv6Address.split("/", 2)[0]; + cfg += "ifconfig-ipv6 " + mIPv6Address + " " + fakegw +"\n"; + } + } if (mUsePull && mRoutenopull) @@ -1075,7 +1079,6 @@ public class VpnProfile implements Serializable, Cloneable { try { - /* ECB is perfectly fine in this special case, since we are using it for the public/private part in the TLS exchange */ |