From 6af885f27fe75ca0f006ba8db06ec585dcc34a48 Mon Sep 17 00:00:00 2001 From: "destan19@126.com" Date: Fri, 19 Jun 2020 15:49:56 +0800 Subject: [PATCH] luci: fix oaf web crash issue --- luci-app-oaf/luasrc/model/cbi/appfilter/appfilter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);