mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fix for #1401
This commit is contained in:
parent
2405449029
commit
43cca84ebe
8 changed files with 116 additions and 55 deletions
|
|
@ -229,8 +229,9 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
|
||||
if(value.childSafe == true) then print(getSafeChildIcon()) end
|
||||
|
||||
if((value["country"] ~= nil) and (value["country"] ~= "")) then
|
||||
print(" <a href='".. ntop.getHttpPrefix() .. "/lua/hosts_stats.lua?country="..value["country"].."'><img src='".. ntop.getHttpPrefix() .. "/img/blank.gif' class='flag flag-".. string.lower(value["country"]) .."'></a>")
|
||||
local host = interface.getHostInfo(hosts_stats[key].ip, hosts_stats[key].vlan)
|
||||
if((host ~= nil) and (host.country ~= nil) and (host.country ~= "")) then
|
||||
print(" <a href='".. ntop.getHttpPrefix() .. "/lua/hosts_stats.lua?country="..host.country.."'><img src='".. ntop.getHttpPrefix() .. "/img/blank.gif' class='flag flag-".. string.lower(host.country) .."'></a>")
|
||||
end
|
||||
|
||||
print(" ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue