From 97664c85648731fa69aae3a70463f88fd8256625 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Wed, 24 Jun 2020 18:46:38 +0800 Subject: [PATCH] OpenAppFilter: sync with upstream source --- .../luci-app-appfilter/luasrc/model/cbi/appfilter/appfilter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/ctcgfw/luci-app-appfilter/luasrc/model/cbi/appfilter/appfilter.lua b/package/ctcgfw/luci-app-appfilter/luasrc/model/cbi/appfilter/appfilter.lua index fc5d250a98..5a7c328159 100644 --- a/package/ctcgfw/luci-app-appfilter/luasrc/model/cbi/appfilter/appfilter.lua +++ b/package/ctcgfw/luci-app-appfilter/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);