diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-15 01:31:50 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-15 01:31:50 +0200 |
commit | f8249f98f37c7b75e56f007c892aab0c7d3e4dca (patch) | |
tree | f67130b629ac9015b673ef9cd313a5f4c97d33b7 | |
parent | 90ba71780c8ad851f0146e2176a9e40efe532e05 (diff) |
Add parsing of --provider to ConfigParser
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java b/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java index 4126f65c..01f7cf69 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java +++ b/main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java @@ -562,6 +562,14 @@ public class ConfigParser { } } + Vector<String> provider = getOption("provider", 1, 1); + if (provider != null) + { + String providers = provider.get(1).toLowerCase(Locale.ROOT); + if (providers.equals("legacy:default") || providers.equals("default:legacy")) + np.mUseLegacyProvider = true; + } + Vector<String> compatmode = getOption("compat-mode", 1, 1); if (compatmode != null) |