diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-15 01:31:14 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-15 01:31:14 +0200 |
commit | 90ba71780c8ad851f0146e2176a9e40efe532e05 (patch) | |
tree | 8dfca9b98cef35ec916f011206cc7b324d08ac1c /main/src/main/java/de/blinkt/openvpn/VpnProfile.java | |
parent | 9ca366fb2db61926021866a37e14c332ebc57c59 (diff) |
Implement tls-cert-profile in profile and parser
Diffstat (limited to 'main/src/main/java/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/VpnProfile.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java index 84e7975d..fd30ea5a 100644 --- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java +++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java @@ -385,6 +385,9 @@ public class VpnProfile implements Serializable, Cloneable { if (mUseLegacyProvider) cfg.append("provider legacy:default\n"); + + if (!TextUtils.isEmpty(mTlSCertProfile)) + cfg.append(String.format("tls-cert-profile %s\n", mTlSCertProfile)); } else { cfg.append("# Config for OpenVPN 3 C++\n"); } |