diff options
author | cyBerta <cyberta@riseup.net> | 2022-06-08 21:13:55 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2022-06-08 21:14:33 +0200 |
commit | f74783b9e734e23841c733a44e6db10a51a9021a (patch) | |
tree | 8dba856b961c24aa79e0471deb77f6361b28e569 /app/src/main/java/de | |
parent | d2a2bc2da305324c8be00cd683546896b00145d1 (diff) |
test new ciphers setup and correct data-cipher parsing
Diffstat (limited to 'app/src/main/java/de')
-rw-r--r-- | app/src/main/java/de/blinkt/openvpn/core/ConfigParser.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/ConfigParser.java b/app/src/main/java/de/blinkt/openvpn/core/ConfigParser.java index 4a8bcf99..10dd7033 100644 --- a/app/src/main/java/de/blinkt/openvpn/core/ConfigParser.java +++ b/app/src/main/java/de/blinkt/openvpn/core/ConfigParser.java @@ -561,7 +561,11 @@ public class ConfigParser { } } else if (!TextUtils.isEmpty(np.mCipher) && !np.mCipher.equals("AES-128-GCM") && !np.mCipher.equals("AES-256")) { - np.mDataCiphers += "AES-256-GCM:AES-128-GCM:" + np.mCipher; + if (np.mCipher.contains("AES-256-GCM")) { + np.mDataCiphers += np.mCipher; + } else { + np.mDataCiphers += "AES-256-GCM:AES-128-GCM:" + np.mCipher; + } } Vector<String> auth = getOption("auth", 1, 1); |