From f8249f98f37c7b75e56f007c892aab0c7d3e4dca Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 15 Oct 2021 01:31:50 +0200 Subject: Add parsing of --provider to ConfigParser --- main/src/main/java/de/blinkt/openvpn/core/ConfigParser.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'main') 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 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 compatmode = getOption("compat-mode", 1, 1); if (compatmode != null) -- cgit v1.2.3