summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-12-17 19:24:42 +0100
committerArne Schwabe <arne@rfc2549.org>2021-12-17 19:24:42 +0100
commitea05e198e0de4c4231b66260749816a2bd7053b9 (patch)
treef9bca861a2db48c4533277a2d8ea63afdbae9cf9
parent3890061ac8b6b4afe967ae10c4d2100f642705d1 (diff)
Fix legacy provider not working with OpenVPN 2.x
-rw-r--r--main/src/main/java/de/blinkt/openvpn/VpnProfile.java2
-rw-r--r--main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java5
2 files changed, 3 insertions, 4 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
index af85eeb1..89154152 100644
--- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
+++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
@@ -388,7 +388,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("providers legacy default\n");
if (!TextUtils.isEmpty(mTlSCertProfile) && mAuthenticationType != TYPE_STATICKEYS)
cfg.append(String.format("tls-cert-profile %s\n", mTlSCertProfile));
diff --git a/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java b/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
index 0db2f16d..3c197b25 100644
--- a/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
+++ b/main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java
@@ -32,9 +32,8 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable
System.loadLibrary("ovpn3");
}
- private VpnProfile mVp;
- private OpenVPNService mService;
- private ClientAPI_OpenVPNClientHelper clientHelper = new ClientAPI_OpenVPNClientHelper();
+ private final VpnProfile mVp;
+ private final OpenVPNService mService;
public OpenVPNThreadv3(OpenVPNService openVpnService, VpnProfile vp) {
mVp = vp;