summaryrefslogtreecommitdiff
path: root/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-10-30 23:00:54 +0200
committerArne Schwabe <arne@rfc2549.org>2021-12-17 11:36:32 +0100
commit2f137c89d76808d537d3694975518df30475bd90 (patch)
treef86d169cd3770725636781618b7764a7ca23e8d0 /main/src/main/java/de/blinkt/openvpn/VpnProfile.java
parent1e40ded48b1dfbb9edcd13a4f6d4f69abfb7ffb2 (diff)
Update OpenVPN 2.x and OpenVPN 3.x
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Diffstat (limited to 'main/src/main/java/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/VpnProfile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
index 4a5b2b4c..bac5939d 100644
--- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
+++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
@@ -384,7 +384,7 @@ public class VpnProfile implements Serializable, Cloneable {
cfg.append(String.format("setenv IV_PLAT_VER %s\n", openVpnEscape(versionString)));
if (mUseLegacyProvider)
- cfg.append("provider legacy:default\n");
+ cfg.append("provider legacy default\n");
if (!TextUtils.isEmpty(mTlSCertProfile) && mAuthenticationType != TYPE_STATICKEYS)
cfg.append(String.format("tls-cert-profile %s\n", mTlSCertProfile));
@@ -1067,7 +1067,7 @@ public class VpnProfile implements Serializable, Cloneable {
if (!mUseLegacyProvider &&
(dataciphers.contains("BF-CBC")
- || ((mCompatMode > 0 && mCompatMode < 20500) || useOpenVPN3)
+ || (mCompatMode > 0 && mCompatMode < 20500)
&& cipher.equals("BF-CBC")))
{
return R.string.bf_cbc_requires_legacy;