mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rewrite sender-ip if ::ffff: is prepended because the syslogserver uses IPv6
This commit is contained in:
@ -46,6 +46,7 @@ function process_syslog($entry, $update) {
|
||||
}
|
||||
}
|
||||
|
||||
$entry['host'] = preg_replace("/^::ffff:/", "", $entry['host']);
|
||||
$entry['device_id'] = get_cache($entry['host'], 'device_id');
|
||||
if ($entry['device_id']) {
|
||||
$os = get_cache($entry['host'], 'os');
|
||||
|
Reference in New Issue
Block a user