mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added dga domain URL check (#6583)
This commit is contained in:
parent
cb12e7d721
commit
37820b4940
1 changed files with 7 additions and 1 deletions
|
|
@ -51,7 +51,13 @@ function alert_ndpi_suspicious_dga_domain.format(ifid, alert, alert_type_params)
|
|||
end
|
||||
|
||||
if not isEmptyString(domain) then
|
||||
href = i18n('external_link_url', { url = 'https://' .. alert_type_params.dga_domain, url_name = shortenString(alert_type_params.dga_domain, 32)})
|
||||
-- URL check
|
||||
local link = 'https://' .. alert_type_params.dga_domain
|
||||
if string.find(alert_type_params.dga_domain, 'http') then
|
||||
link = alert_type_params.dga_domain
|
||||
end
|
||||
|
||||
href = i18n('external_link_url', { url = link, url_name = shortenString(alert_type_params.dga_domain, 32)})
|
||||
end
|
||||
|
||||
return i18n("alert_messages.suspicious_dga_domain", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue