match the interface check with the later "pass out" rule's check, so as to not generate invalid ruleset

This commit is contained in:
Chris Buechler 2009-12-19 03:45:09 -05:00
parent eb29fd9bbc
commit e7c623c458

View File

@ -614,7 +614,7 @@ function filter_generate_optcfg_array()
$FilterIflist['pppoe'] = $oic;
}
/* add ipsec interfaces */
if (isset($config['ipsec']['enable'])) {
if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable'])) {
$oic = array();
$oic['if'] = 'enc0';
$oic['descr'] = 'IPsec';