OpenAppFilter: sync with upstream source

This commit is contained in:
CN_SZTL 2020-06-24 18:46:38 +08:00
parent dc2d0d9491
commit 97664c8564
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

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