Commit 89a81f3e authored by Ad Schellevis's avatar Ad Schellevis

regression, missing ipv4 address in get_interfaces_info(), for...

regression, missing ipv4 address in get_interfaces_info(), for https://github.com/opnsense/core/issues/1662
parent 9bb3dd61
......@@ -4649,6 +4649,10 @@ function get_interfaces_info()
}
}
}
if (!empty($ifinfo['ipv4'])) {
$ifinfo['ipaddr'] = $ifinfo['ipv4'][0]['ipaddr'];
$ifinfo['subnet'] = $ifinfo['ipv4'][0]['subnetbits'];
}
$ifinfotmp = $all_intf_stats[$ifinfo['if']];
$ifinfo['inerrs'] = $ifinfotmp['input errors'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment