luci-base: fix duid_to_mac reference in status.lua

* fix for openwrt/packages#9148

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2019-06-04 16:54:24 +02:00
parent 1e138fdccf
commit 64fb538568
No known key found for this signature in database
GPG key ID: 9D71CD547BFAE684

View file

@ -92,7 +92,7 @@ local function dhcp_leases_common(family)
local _, lease local _, lease
local hosts = sys.net.host_hints() local hosts = sys.net.host_hints()
for _, lease in ipairs(rv) do for _, lease in ipairs(rv) do
local mac = duid_to_mac(lease.duid) local mac = sys.net.duid_to_mac(lease.duid)
local host = mac and hosts[mac] local host = mac and hosts[mac]
if host then if host then
if not lease.name then if not lease.name then