Added fix for #1755

Implemented OS detection via HTTP user agent
Minor cosmetic GUI fixes
This commit is contained in:
Luca Deri 2018-06-14 19:20:21 +02:00
parent 2d87469279
commit d17bb9671f
8 changed files with 74 additions and 9 deletions

View file

@ -225,9 +225,14 @@ for _key, _value in pairsByKeys(vals, funct) do
print ("\"column_ip\" : \"<A HREF='")
url = ntop.getHttpPrefix().."/lua/host_details.lua?" ..hostinfo2url(hosts_stats[key])
print(url .. "'>")
print(mapOS2Icon(stripVlan(key)))
print(" </A> ")
if((value.operatingSystem ~= 0) and (value["os"] == "")) then
print(" "..getOperatingSystemIcon(value.operatingSystem).." ")
end
if(value["systemhost"] == true) then print("&nbsp;<i class='fa fa-flag'></i>") end
if(value["hiddenFromTop"] == true) then print("&nbsp;<i class='fa fa-eye-slash'></i>") end