mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add bans to blacklisted hosts in the flows list page
This commit is contained in:
parent
85faa5ef34
commit
3bfe6201ac
2 changed files with 28 additions and 19 deletions
|
|
@ -369,14 +369,19 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
local column_client = src_key
|
||||
local info = interface.getHostInfo(value["cli.ip"], value["cli.vlan"])
|
||||
|
||||
if(info ~= nil) then
|
||||
if(info.broadcast_domain_host) then
|
||||
column_client = column_client.." <i class='fa fa-sitemap' title='"..i18n("hosts_stats.label_broadcast_domain_host").."'></i>"
|
||||
if info then
|
||||
if info.broadcast_domain_host then
|
||||
column_client = column_client.." <i class='fa fa-sitemap fa-sm' title='"..i18n("hosts_stats.label_broadcast_domain_host").."'></i>"
|
||||
end
|
||||
|
||||
if(info.dhcpHost) then
|
||||
column_client = column_client.." <i class=\'fa fa-flash fa-lg\' aria-hidden=\'true\' title=\'DHCP Host\'></i>"
|
||||
|
||||
if info.dhcpHost then
|
||||
column_client = column_client.." <i class=\'fa fa-flash fa-sm\' title=\'DHCP Host\'></i>"
|
||||
end
|
||||
|
||||
if info.is_blacklisted then
|
||||
column_client = column_client.." <i class=\'fa fa-ban fa-sm\' title=\'"..i18n("hosts_stats.blacklisted").."\'></i>"
|
||||
end
|
||||
|
||||
column_client = column_client..getFlag(info["country"])
|
||||
end
|
||||
|
||||
|
|
@ -393,13 +398,17 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
local column_server = dst_key
|
||||
info = interface.getHostInfo(value["srv.ip"], value["srv.vlan"])
|
||||
|
||||
if(info ~= nil) then
|
||||
if(info.broadcast_domain_host) then
|
||||
column_server = column_server.." <i class='fa fa-sitemap' title='"..i18n("hosts_stats.label_broadcast_domain_host").."'></i>"
|
||||
if info then
|
||||
if info.broadcast_domain_host then
|
||||
column_server = column_server.." <i class='fa fa-sitemap fa-sm' title='"..i18n("hosts_stats.label_broadcast_domain_host").."'></i>"
|
||||
end
|
||||
|
||||
if(info.dhcpHost) then
|
||||
column_server = column_server.." <i class=\'fa fa-flash fa-lg\' aria-hidden=\'true\' title=\'DHCP Host\'></i>"
|
||||
if info.dhcpHost then
|
||||
column_server = column_server.." <i class=\'fa fa-flash fa-sm\' title=\'DHCP Host\'></i>"
|
||||
end
|
||||
|
||||
if info.is_blacklisted then
|
||||
column_server = column_server.." <i class=\'fa fa-ban fa-sm\' title=\'"..i18n("hosts_stats.blacklisted").."\'></i>"
|
||||
end
|
||||
|
||||
column_server = column_server..getFlag(info["country"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue