From 067f0f8d67ed3ed6126aed64ae275a883eae964c Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 22 Jun 2016 19:39:47 +0100 Subject: [PATCH] Updated if check for device ip --- html/includes/table/graylog.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/table/graylog.inc.php b/html/includes/table/graylog.inc.php index d43e2fdaf0..d089d1c178 100644 --- a/html/includes/table/graylog.inc.php +++ b/html/includes/table/graylog.inc.php @@ -38,7 +38,7 @@ if (!empty($filter_hostname)) { $ip = gethostbyname($filter_hostname); $device = device_by_name($filter_hostname); $query .= 'source:"'.$filter_hostname.'" || source:"'.$ip.'"'; - if (isset($device['ip'])) { + if (isset($device['ip']) && $ip != $device['ip']) { $query .= ' || source:"'.$device['ip'].'"'; } }