mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
listen to disabled ipsec nat entries, closes https://github.com/opnsense/core/issues/439
This commit is contained in:
parent
1602218791
commit
cd537c7b1c
@ -1650,7 +1650,7 @@ function filter_nat_rules_generate() {
|
||||
if (isset($config['ipsec']) && is_array($config['ipsec']) && isset($config['ipsec']['enable'])) {
|
||||
if (isset($config['ipsec']['phase2'])) {
|
||||
foreach ($config['ipsec']['phase2'] as $ph2ent) {
|
||||
if ($ph2ent['mode'] != 'transport' && !empty($ph2ent['natlocalid'])) {
|
||||
if ($ph2ent['mode'] != 'transport' && !empty($ph2ent['natlocalid']) && !isset($ph2ent['disabled'])) {
|
||||
if (!is_array($ph2ent['localid']))
|
||||
$ph2ent['localid'] = array();
|
||||
$ph2ent['localid']['mode'] = $ph2ent['mode'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user