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

Parse protocol in port option

Reviewers: #plasma, jgrulich

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14130
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) {
// TODO
QString protocol = key_value[3];
if(protocol.startsWith(QLatin1String("tcp"))) {
dataMap[QLatin1String(NM_OPENVPN_KEY_PROTO_TCP)] = QLatin1String("yes");
}
}
}
}
......
Supports Markdown
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