diff options
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-x | usr/local/www/vpn_ipsec.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index 17d4b4a..19186e5 100755 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -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; @@ -115,6 +117,12 @@ include("head.inc"); <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> </tr> |