0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-19 19:42:29 +02:00

Add parsing of --provider to ConfigParser

This commit is contained in:
Arne Schwabe 2021-10-15 01:31:50 +02:00
parent 90ba71780c
commit f8249f98f3

View File

@ -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)