mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
For some reason, this is now broken. Accessing the array this way fixes it. I suspect it has something to do with the periods in the host names (#9839)
This commit is contained in:
@@ -57,7 +57,7 @@ function process_syslog($entry, $update)
|
||||
}
|
||||
|
||||
$entry['host'] = preg_replace("/^::ffff:/", "", $entry['host']);
|
||||
if ($new_host = Config::get('syslog_xlate.' . $entry['host'])) {
|
||||
if ($new_host = Config::get("syslog_xlate")[$entry['host']]) {
|
||||
$entry['host'] = $new_host;
|
||||
}
|
||||
$entry['device_id'] = get_cache($entry['host'], 'device_id');
|
||||
|
Reference in New Issue
Block a user