Commit 6772557e authored by Jan Grulich's avatar Jan Grulich

OpenVPN: reneg-sec property doesn't need limitation

BUG:404614
parent 0903dc01
......@@ -302,11 +302,7 @@ NMVariantMapMap OpenVpnUiPlugin::importConnectionSettings(const QString &fileNam
}
if (key_value[0] == RENEG_SEC_TAG) {
if (key_value.count() == 2) {
if (key_value[1].toLong() >= 0 && key_value[1].toLong() <= 604800 ) {
dataMap.insert(QLatin1String(NM_OPENVPN_KEY_RENEG_SECONDS), key_value[1]);
} else {
KMessageBox::information(nullptr, i18n("Invalid size (should be between 0 and 604800) in option: %1", line));
}
dataMap.insert(QLatin1String(NM_OPENVPN_KEY_RENEG_SECONDS), key_value[1]);
} else {
KMessageBox::information(nullptr, i18n("Invalid number of arguments (expected 1) in option: %1", line));
}
......
......@@ -84,9 +84,6 @@
<property name="toolTip">
<string>Renegotiate data channel key after the specified number of seconds.</string>
</property>
<property name="maximum">
<number>604800</number>
</property>
</widget>
</item>
</layout>
......
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