Merge pull request #52 from zzhang1987/patch-1

Update appfilter.lua
This commit is contained in:
Derry 2020-06-10 09:27:58 +08:00 committed by GitHub
commit b00753575d
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