Prevent a user from selecting VTI for mobile IPsec. Fixes #8877

This commit is contained in:
jim-p 2018-09-07 08:10:55 -04:00
parent 02af149428
commit 885cf6a751

View File

@ -243,6 +243,10 @@ if ($_POST['save']) {
/* Validate enabled phase2's are not duplicates */
if (isset($pconfig['mobile'])) {
/* User is adding phase 2 for mobile phase1 */
if ($pconfig['mode'] == "vti") {
$input_errors[] = gettext("VTI is not compatible with mobile IPsec.");
}
foreach ($a_phase2 as $key => $name) {
if (isset($name['mobile']) && $name['uniqid'] != $pconfig['uniqid']) {
/* check duplicate localids only for mobile clents */