System: High Availability - missing syslog caused by netflow_xmlrpc_sync() shadowing the section

PR: https://github.com/opnsense/core/issues/9481

(cherry picked from commit 6e478cf67131b2646ea53e2da3bb855a74bb5b3b)
(cherry picked from commit 4bfa65463c869d0e9decd26aa9a3e1e315e8b579)
This commit is contained in:
Ad Schellevis 2025-12-08 21:06:46 +01:00 committed by Franco Fichtner
parent 0fba32ed25
commit ff084dadab
2 changed files with 5 additions and 8 deletions

View File

@ -375,7 +375,7 @@ function core_xmlrpc_sync()
$result[] = [
'description' => gettext('System logging'),
'section' => 'syslog,OPNsense.Syslog',
'id' => 'syslog',
'id' => 'syslog-ng',
'services' => ['syslogd'],
];

View File

@ -80,13 +80,10 @@ function netflow_services()
*/
function netflow_xmlrpc_sync()
{
$result = [];
$result[] = array(
return [[
'description' => gettext('Netflow / Insight'),
'id' => 'syslog', /* historic yet tolerated typo */
'section' => 'OPNsense.Netflow',
'id' => 'syslog',
'services' => ["samplicate", "flowd_aggregate"],
);
return $result;
'services' => ['samplicate', 'flowd_aggregate'],
]];
}