Skip to content

Commit

Permalink
[settings-vpn] Support block-ipv6 in OpenVPN provisioning. JB#54606
Browse files Browse the repository at this point in the history
  • Loading branch information
LaakkonenJussi committed Jun 14, 2021
1 parent 8a6aa1a commit 458f627
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/settingsvpnmodel.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 - 2019 Jolla Ltd.
* Copyright (c) 2016 - 2021 Jolla Ltd.
* Copyright (c) 2019 Open Mobile Platform LLC.
*
* You may use this file under the terms of the BSD license as follows:
Expand Down Expand Up @@ -834,6 +834,10 @@ QVariantMap SettingsVpnModel::processOpenVpnProvisioningFile(QFile &provisioning
} else if (directive == QStringLiteral("connect-retry-max")) {
// Ignore, must not be set with ConnMan
qInfo() << "Ignoring connect-retry-max with OpenVPN";
} else if (directive == QStringLiteral("block-ipv6")) {
if (!arguments.isEmpty()) {
rv.insert(QStringLiteral("OpenVPN.BlockIPv6"), arguments.join(QChar(' ')));
}
} else {
// A directive that ConnMan does not care about - pass through to the config file
extraOptions.append(line);
Expand Down

0 comments on commit 458f627

Please sign in to comment.