Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 1feaa4ca authored by Martin Schulze's avatar Martin Schulze Committed by Jan Grulich

Parse protocol in port option

Reviewers: #plasma, jgrulich

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 9a7c8370
......@@ -379,7 +379,10 @@ NMVariantMapMap OpenVpnUiPlugin::importConnectionSettings(const QString &fileNam
&& key_value[2].toLong() < 65536) {
dataMap.insert(QLatin1String(NM_OPENVPN_KEY_PORT), key_value[2]);
if (key_value.count() == 4) {
QString protocol = key_value[3];
if(protocol.startsWith(QLatin1String("tcp"))) {
dataMap[QLatin1String(NM_OPENVPN_KEY_PROTO_TCP)] = QLatin1String("yes");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment