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:
parent
5de87b953d
commit
9b3edc6edb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user