mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Set proto icon to lock only for encrypted flows (#5733)
This commit is contained in:
parent
65e1a400b6
commit
13d804e199
3 changed files with 7 additions and 3 deletions
|
|
@ -2730,9 +2730,11 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function formatBreed(breed)
|
||||
function formatBreed(breed, is_tls)
|
||||
if(breed == "Safe") then
|
||||
return("<i class='fas fa-lock' alt='"..i18n("breed.safe").."'></i>")
|
||||
local icon = 'lock'
|
||||
if is_tls ~= nil and not is_tls then icon = 'thumbs-up' end
|
||||
return("<i class='fas fa-"..icon.."' alt='"..i18n("breed.safe").."'></i>")
|
||||
elseif(breed == "Acceptable") then
|
||||
return("<i class='fas fa-thumbs-up' alt='"..i18n("breed.acceptable").."'></i>")
|
||||
elseif(breed == "Fun") then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue