Both -HEAD and -RELENG_1 have had a hidden feature to allow IPSEC compression. Add a checkbox to the screen to allow this hidden value to be toggled.

This commit is contained in:
Scott Ullrich 2007-04-06 17:55:43 +00:00
parent e801f66230
commit 91f1378cef

View File

@ -37,6 +37,7 @@ $a_ipsec = &$config['ipsec']['tunnel'];
$wancfg = &$config['interfaces']['wan'];
$pconfig['enable'] = isset($config['ipsec']['enable']);
$pconfig['ipcomp'] = isset($config['ipsec']['ipcomp']);
if ($_POST) {
@ -52,7 +53,8 @@ if ($_POST) {
$pconfig = $_POST;
$config['ipsec']['enable'] = $_POST['enable'] ? true : false;
$config['ipsec']['ipcomp'] = $_POST['ipcomp'] ? true : false;
write_config();
$retval = 0;
@ -114,6 +116,12 @@ include("head.inc");
<input name="enable" type="checkbox" id="enable" value="yes" <?php if ($pconfig['enable']) echo "checked";?>>
<strong>Enable IPsec</strong></td>
</tr>
<tr>
<td class="vtable">
<input name="ipcomp" type="checkbox" id="ipcomp" value="yes" <?php if ($pconfig['ipcomp']) echo "checked=\"checked\"";?> />
<strong>Enable IPsec Compression</strong>
</td>
</tr>
<tr>
<td> <input name="submit" type="submit" class="formbtn" value="Save">
</td>