diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-20 14:44:31 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-20 14:44:31 +0200 |
commit | 1e791c969df77a424d5d1561cd839aee5b6f00a0 (patch) | |
tree | 6f12335d34477a12867c4c1856eacd974f97cbdf /main/src/main/java/de/blinkt/openvpn/VpnProfile.java | |
parent | 33218dd7a52b63e6a2e83a57dff8308a18087106 (diff) |
Fix writing tls profile to static key config and few cleanups
Diffstat (limited to 'main/src/main/java/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/VpnProfile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java index d13ac7fa..af65873d 100644 --- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java +++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java @@ -386,7 +386,7 @@ public class VpnProfile implements Serializable, Cloneable { if (mUseLegacyProvider) cfg.append("provider legacy:default\n"); - if (!TextUtils.isEmpty(mTlSCertProfile)) + if (!TextUtils.isEmpty(mTlSCertProfile) && mAuthenticationType != TYPE_STATICKEYS) cfg.append(String.format("tls-cert-profile %s\n", mTlSCertProfile)); } else { cfg.append("# Config for OpenVPN 3 C++\n"); |