Merge pull request #2748 from dibdot/duid-fix

luci-base: fix duid_to_mac reference in status.lua
This commit is contained in:
Jo-Philipp Wich 2019-06-04 17:14:37 +02:00 committed by GitHub
commit 1152b75971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ local function dhcp_leases_common(family)
local _, lease
local hosts = sys.net.host_hints()
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]
if host then
if not lease.name then