diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index b72f6a15cb..3e7fd675e8 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -762,9 +762,7 @@ EOD; if ($ph1ent['iketype'] == "ikev2") { $keyexchange = "ikev2"; //$passive = "start"; - } else if ($ph1ent['iketype'] == "auto") { - $keyexchange = "ike"; - } + } } if (isset($ph1ent['mobile'])) { diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php index 2c9006cf85..b9079e1e85 100644 --- a/usr/local/www/vpn_ipsec_phase1.php +++ b/usr/local/www/vpn_ipsec_phase1.php @@ -377,8 +377,8 @@ if ($_POST) { } } - if (!empty($pconfig['iketype']) && $pconfig['iketype'] != "ikev1" && $pconfig['iketype'] != "ikev2" && $pconfig['iketype'] != "auto") { - $input_errors[] = gettext("Valid arguments for IKE type is v1 or v2 or auto"); + if (!empty($pconfig['iketype']) && $pconfig['iketype'] != "ikev1" && $pconfig['iketype'] != "ikev2") { + $input_errors[] = gettext("Valid arguments for IKE type is v1 or v2"); } if (!empty($_POST['ealgo']) && isset($config['system']['crypto_hardware'])) { @@ -685,7 +685,7 @@ function dpdchkbox_change() {