mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Unset the aggressive mode settings for not IKEv1 settings
This commit is contained in:
parent
02069977a3
commit
8e87f7140a
@ -329,6 +329,10 @@ if ($_POST) {
|
||||
if (!$input_errors) {
|
||||
$ph1ent['ikeid'] = $pconfig['ikeid'];
|
||||
$ph1ent['iketype'] = $pconfig['iketype'];
|
||||
if ($pconfig['iketype'] != 'ikev1')
|
||||
unset($ph1ent['mode']);
|
||||
else
|
||||
$ph1ent['mode'] = $pconfig['mode'];
|
||||
$ph1ent['disabled'] = $pconfig['disabled'] ? true : false;
|
||||
$ph1ent['interface'] = $pconfig['interface'];
|
||||
/* if the remote gateway changed and the interface is not WAN then remove route */
|
||||
@ -344,7 +348,6 @@ if ($_POST) {
|
||||
else
|
||||
$ph1ent['remote-gateway'] = $pconfig['remotegw'];
|
||||
|
||||
$ph1ent['mode'] = $pconfig['mode'];
|
||||
$ph1ent['protocol'] = $pconfig['protocol'];
|
||||
|
||||
$ph1ent['myid_type'] = $pconfig['myid_type'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user