Skip to content

Commit cdd4a33

Browse files
Merge branch 'jb54606' into 'master'
[settings-vpn] Support block-ipv6 in OpenVPN provisioning. JB#54606 See merge request mer-core/nemo-qml-plugin-systemsettings!177
2 parents 8a6aa1a + 458f627 commit cdd4a33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/settingsvpnmodel.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016 - 2019 Jolla Ltd.
2+
* Copyright (c) 2016 - 2021 Jolla Ltd.
33
* Copyright (c) 2019 Open Mobile Platform LLC.
44
*
55
* You may use this file under the terms of the BSD license as follows:
@@ -834,6 +834,10 @@ QVariantMap SettingsVpnModel::processOpenVpnProvisioningFile(QFile &provisioning
834834
} else if (directive == QStringLiteral("connect-retry-max")) {
835835
// Ignore, must not be set with ConnMan
836836
qInfo() << "Ignoring connect-retry-max with OpenVPN";
837+
} else if (directive == QStringLiteral("block-ipv6")) {
838+
if (!arguments.isEmpty()) {
839+
rv.insert(QStringLiteral("OpenVPN.BlockIPv6"), arguments.join(QChar(' ')));
840+
}
837841
} else {
838842
// A directive that ConnMan does not care about - pass through to the config file
839843
extraOptions.append(line);

0 commit comments

Comments
 (0)