luci: fix oaf web crash issue

This commit is contained in:
destan19@126.com 2020-06-19 15:49:56 +08:00
parent 08f07db43d
commit 6af885f27f

View File

@ -108,7 +108,7 @@ while true do
end
if not line:match("Ip*") then
local ip, hw_type, flags, mac, mask, device = line:match("(%S+) %s+ (%S+) %s+ (%S+) %s+ (%S+) %s+ (%S+) %s+ (%S+)")
if device:match("lan") then
if device ~= nil and mac ~= nil and device:match("lan") then
local hostname=get_hostname_by_mac(mac)
if not hostname then
users:value(mac, mac);