forked from Github/OPNsense-Dashboard
Minor fixes
This commit is contained in:
parent
453b960c46
commit
70d9e11d34
1 changed files with 5 additions and 5 deletions
|
|
@ -15,9 +15,9 @@ foreach ($iflist as $ifname => $friendly) {
|
|||
$ifstatus = $ifinfo['status'];
|
||||
$realif = get_real_interface($ifname);
|
||||
$ip4addr = get_interface_ip($ifname);
|
||||
$ip4subnet = interfaces_primary_address($realif, $ifconfig_details);
|
||||
$ip4subnet = interfaces_primary_address($realif, $ifconfig_details)[1];
|
||||
$ip6addr = get_interface_ipv6($ifname);
|
||||
$ip6subnet = interfaces_primary_address6($realif, $ifconfig_details);
|
||||
$ip6subnet = interfaces_primary_address6($realif, $ifconfig_details)[1];
|
||||
$mac = get_interface_mac($realif);
|
||||
|
||||
if (!isset($ifinfo)) {
|
||||
|
|
@ -42,7 +42,7 @@ foreach ($iflist as $ifname => $friendly) {
|
|||
$ip4addr = "Unassigned";
|
||||
}
|
||||
if (!isset($ip4subnet)) {
|
||||
$ip4subnet = "0";
|
||||
$ip4subnet = "Unassigned";
|
||||
}
|
||||
if (!isset($ip6addr)) {
|
||||
$ip6addr = "Unassigned";
|
||||
|
|
@ -62,9 +62,9 @@ foreach ($iflist as $ifname => $friendly) {
|
|||
$host,
|
||||
$realif,
|
||||
$ip4addr,
|
||||
$ip4subnet[1],
|
||||
$ip4subnet,
|
||||
$ip6addr,
|
||||
$ip6subnet[1],
|
||||
$ip6subnet,
|
||||
$mac,
|
||||
$friendly,
|
||||
$source,
|
||||
|
|
|
|||
Loading…
Reference in a new issue