Merge pull request #1734 from tuxis-ie/ipv6-syslog

Rewrite sender-ip if ::ffff: is prepended because the syslogserver us…
This commit is contained in:
Neil Lathwood 2015-08-21 23:14:55 +01:00
commit 2c210b9b22

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