mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Prevent a user from selecting VTI for mobile IPsec. Fixes #8877
This commit is contained in:
parent
02af149428
commit
885cf6a751
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user