Implement network discovery page filters

- Filter by: device type, os, manufacturer
- Fix ghost hosts not shown
This commit is contained in:
emanuele-f 2018-05-17 17:12:43 +02:00
parent e022f234db
commit 9b6e2ee618
4 changed files with 124 additions and 9 deletions

View file

@ -1222,7 +1222,7 @@ function discover.discover2table(interface_name, recache)
end
end
if(ghost_macs[mac] == true) then entry["ghost"] = true end
if(ghost_macs[mac] ~= nil) then entry["ghost"] = true end
device_type, device_label, device_info = findDevice(ip, mac, entry["manufacturer"] or get_manufacturer_mac(mac),
arp_mdns[ip], services, ssdp[ip],