mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Actually add the IPSEC rule on config upgrade
This commit is contained in:
parent
4e39a08f55
commit
ef5100e286
@ -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";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user