Merge pull request #2748 from dibdot/duid-fix
luci-base: fix duid_to_mac reference in status.lua
This commit is contained in:
commit
1152b75971
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue