mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated if check for device ip
This commit is contained in:
@ -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'].'"';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user