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:
TylerSweet
2019-02-18 22:57:33 -06:00
committed by Tony Murray
parent b8a9e53b13
commit 06d61fc528

View File

@@ -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');