Actually add the IPSEC rule on config upgrade

This commit is contained in:
Scott Ullrich 2007-02-09 17:14:26 +00:00
parent 4e39a08f55
commit ef5100e286

View File

@ -937,10 +937,12 @@ function convert_config() {
/* Convert 2.7 -> 2.8 */
if ($config['version'] <= 2.7) {
$rule_item = array();
$a_filter = &$config['filter']['rule'];
$rule_item['interface'] = "IPSEC";
$rule_item['type'] = "pass";
$rule_item['src'] = "any";
$rule_item['dst'] = "any";
$a_filter[] = $rule_item;
$config['version'] = "2.8";
}