mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* webui: Only show sysName once if force_ip_to_sysname is enabled #5600 * now also display IP (again) if sysName is used
This commit is contained in:
@@ -196,8 +196,13 @@ foreach (dbFetchRows($sql, $param) as $device) {
|
||||
if ($subformat == 'detail') {
|
||||
$platform = $device['hardware'] . '<br>' . $device['features'];
|
||||
$os = $device['os_text'] . '<br>' . $device['version'];
|
||||
$device['ip'] = inet6_ntop($device['ip']);
|
||||
$uptime = formatUptime($device['uptime'], 'short');
|
||||
$hostname .= '<br>' . $device['sysName'];
|
||||
if (ip_to_sysname($device, $device['hostname']) !== $device['sysName']) {
|
||||
$hostname .= '<br />' . $device['sysName'];
|
||||
} elseif ($device['hostname'] !== $device['ip']) {
|
||||
$hostname .= '<br />' . $device['hostname'];
|
||||
}
|
||||
if (empty($port_count)) {
|
||||
$port_count = 0;
|
||||
$col_port = '';
|
||||
|
||||
Reference in New Issue
Block a user