Skip to content

Commit ea05e19

Browse files
committed
Fix legacy provider not working with OpenVPN 2.x
1 parent 3890061 commit ea05e19

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

main/src/main/java/de/blinkt/openvpn/VpnProfile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public String getConfigFile(Context context, boolean configForOvpn3) {
388388
cfg.append(String.format("setenv IV_PLAT_VER %s\n", openVpnEscape(versionString)));
389389

390390
if (mUseLegacyProvider)
391-
cfg.append("provider legacy default\n");
391+
cfg.append("providers legacy default\n");
392392

393393
if (!TextUtils.isEmpty(mTlSCertProfile) && mAuthenticationType != TYPE_STATICKEYS)
394394
cfg.append(String.format("tls-cert-profile %s\n", mTlSCertProfile));

main/src/ui/java/de/blinkt/openvpn/core/OpenVPNThreadv3.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable
3232
System.loadLibrary("ovpn3");
3333
}
3434

35-
private VpnProfile mVp;
36-
private OpenVPNService mService;
37-
private ClientAPI_OpenVPNClientHelper clientHelper = new ClientAPI_OpenVPNClientHelper();
35+
private final VpnProfile mVp;
36+
private final OpenVPNService mService;
3837

3938
public OpenVPNThreadv3(OpenVPNService openVpnService, VpnProfile vp) {
4039
mVp = vp;

0 commit comments

Comments
 (0)