mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
VPN: IPsec: Connections - missing remapping pool uuid to name, closes https://github.com/opnsense/core/issues/6324
This commit is contained in:
parent
991f27ee94
commit
9d5e1edb95
@ -192,6 +192,16 @@ class Swanctl extends BaseModel
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($data['pools'])) {
|
||||
// pools are mapped by name for clearer identification and legacy support
|
||||
// need to remap them in the output tree
|
||||
foreach ($data['pools'] as $key => $value) {
|
||||
if (isset($pool_names[$key])) {
|
||||
$data['pools'][$pool_names[$key]] = $value;
|
||||
unset($data['pools'][$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user