mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
(tinc) fix syslog, every tinc network uses it's own facility
This commit is contained in:
parent
f521f43159
commit
4469b21b4f
1 changed files with 8 additions and 1 deletions
|
|
@ -44,9 +44,16 @@ function if_tinc_syslog()
|
|||
$logfacilities = array();
|
||||
|
||||
$logfacilities['tinc'] = array(
|
||||
'facility' => array('tinc'),
|
||||
'facility' => array(),
|
||||
'remote' => 'vpn',
|
||||
);
|
||||
$mdl = new \OPNsense\Tinc\Tinc();
|
||||
|
||||
foreach ($mdl->networks->network->__items as $network) {
|
||||
if ($network->enabled == '1') {
|
||||
$logfacilities['tinc']['facility'][] = 'tinc.'.$network->name;
|
||||
}
|
||||
}
|
||||
|
||||
return $logfacilities;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue