Update appfilter.lua

delete debugging code so that it is compatible with the newest snapshot openwrt (it still require an acl to work)
This commit is contained in:
Zhen Zhang 2020-06-02 11:23:50 +08:00 committed by GitHub
parent 5de87b953d
commit 9b3edc6edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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