summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_phase1.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/vpn_ipsec_phase1.php')
-rw-r--r--usr/local/www/vpn_ipsec_phase1.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php
index 15e71fe..b49559f 100644
--- a/usr/local/www/vpn_ipsec_phase1.php
+++ b/usr/local/www/vpn_ipsec_phase1.php
@@ -317,8 +317,8 @@ if ($_POST) {
$input_errors[] = gettext("A numeric value must be specified for DPD retries.");
}
- if (!empty($pconfig['iketype']) && $pconfig['iketype'] != "ikev1" && $pconfig['iketype'] != "ikev2")
- $input_errors[] = gettext("Valid arguments for IKE type is v1 or v2");
+ 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");
/* build our encryption algorithms array */
$pconfig['ealgo'] = array();
@@ -569,7 +569,7 @@ function dpdchkbox_change() {
<td width="78%" class="vtable">
<select name="iketype" class="formselect">
<?php
- $keyexchange = array("ikev1" => "V1", "ikev2" => "V2");
+ $keyexchange = array("ikev1" => "V1", "ikev2" => "V2", "auto" => "Auto");
foreach ($keyexchange as $kidx => $name):
?>
<option value="<?=$kidx;?>" <?php if ($kidx == $pconfig['iketype']) echo "selected=\"selected\""; ?>>
OpenPOWER on IntegriCloud