mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
[VS] Add IPv6 badge on alert description.
This commit is contained in:
parent
9e3adc817f
commit
2083ea6cb9
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ function alert_vulnerability_scan.format(ifid, alert, alert_type_params, local_e
|
|||
local host = alert_type_params.host_name
|
||||
if isEmptyString(host) then
|
||||
host = alert_type_params.host
|
||||
else
|
||||
if (not isIPv4(alert_type_params.host)) then
|
||||
host = string.format("%s <span class=\"badge bg-secondary\">%s</span>",host,i18n('ipv6'))
|
||||
end
|
||||
end
|
||||
|
||||
local scan_type = alert_type_params.scan_type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue