From 9b3edc6edb8529f941e757ed634890128181d03e Mon Sep 17 00:00:00 2001 From: Zhen Zhang Date: Tue, 2 Jun 2020 11:23:50 +0800 Subject: [PATCH] Update appfilter.lua delete debugging code so that it is compatible with the newest snapshot openwrt (it still require an acl to work) --- luci-app-oaf/luasrc/controller/appfilter.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/luci-app-oaf/luasrc/controller/appfilter.lua b/luci-app-oaf/luasrc/controller/appfilter.lua index d767df9..7521218 100755 --- a/luci-app-oaf/luasrc/controller/appfilter.lua +++ b/luci-app-oaf/luasrc/controller/appfilter.lua @@ -24,10 +24,8 @@ function get_hostname_by_mac(dst_mac) break end local ts, mac, ip, name, duid = ln:match("^(%d+) (%S+) (%S+) (%S+) (%S+)") - print(ln) if dst_mac == mac then - print("match mac", mac, "hostname=", name); - fd:close() + fd:close() return name end end