diff --git a/luci-app-oaf/luasrc/model/cbi/appfilter/appfilter.lua b/luci-app-oaf/luasrc/model/cbi/appfilter/appfilter.lua index fc5d250..5a7c328 100755 --- a/luci-app-oaf/luasrc/model/cbi/appfilter/appfilter.lua +++ b/luci-app-oaf/luasrc/model/cbi/appfilter/appfilter.lua @@ -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);