Rewrite sender-ip if ::ffff: is prepended because the syslogserver uses IPv6

This commit is contained in:
Mark Schouten
2015-08-21 16:02:59 +02:00
parent 409b2efd17
commit b79d2906ae

View File

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