mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
VPN: IPsec - fix regression in https://github.com/opnsense/core/commit/b440c12e80b86, all indexed fields are flushed into the config, these virtual ones shouldn't go there. closes https://github.com/opnsense/core/issues/9022 (simplified version which will ignore future volatile fields)
This commit is contained in:
parent
c2a7d1a913
commit
ccfa210433
1 changed files with 2 additions and 2 deletions
|
|
@ -191,8 +191,8 @@ class Swanctl extends BaseModel
|
|||
$parent = null;
|
||||
$thisnode = [];
|
||||
foreach ($node->iterateItems() as $attr_name => $attr) {
|
||||
if ($key == 'connections' && in_array($attr_name ,['local_ts', 'remote_ts'])) {
|
||||
/* virtual nodes belonging to child */
|
||||
if ($attr->getInternalIsVolatile()) {
|
||||
/* skip volatile nodes, usually calculated */
|
||||
continue;
|
||||
} elseif ($attr_name == 'connection' && isset($data['connections'][(string)$attr])) {
|
||||
$parent = (string)$attr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue