mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* webui: Show device hostname as IP if force_ip_to_sysname enabled and no resolved IP #5723 * more streamlined logic * darn whitespace
This commit is contained in:
committed by
Tony Murray
parent
569d82b7bb
commit
f8cb31547c
@@ -31,10 +31,9 @@ echo '<tr>
|
|||||||
</tr>';
|
</tr>';
|
||||||
|
|
||||||
if (!empty($device['ip'])) {
|
if (!empty($device['ip'])) {
|
||||||
echo '<tr>
|
echo "<tr><td>Resolved IP</td><td>{$device['ip']}</td></tr>";
|
||||||
<td>Resolved IP</td>
|
} elseif ($config['force_ip_to_sysname'] === true) {
|
||||||
<td>'.$device['ip'].'</td>
|
echo "<tr><td>IP Address</td><td>{$device['hostname']}</td></tr>";
|
||||||
</tr>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($device['hardware']) {
|
if ($device['hardware']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user