Fixes copy button not correctly working

This commit is contained in:
MatteoBiscosi 2022-03-23 13:47:18 +01:00
parent 8cb1a6fc28
commit 477dfcf29c
4 changed files with 21 additions and 3 deletions

View file

@ -5126,6 +5126,14 @@ function format_tls_info(tls_info)
tls_info["ja3.server_unsafe_cipher"] = string.format('<span class="badge bg-%s">%s</span>', badge, tls_info["ja3.server_unsafe_cipher"])
end
if tls_info["ja3.server_hash"] then
tls_info["ja3.server_hash"] = i18n("copy_button", { full_name = tls_info["ja3.server_hash"], name = tls_info["ja3.server_hash"] })
end
if tls_info["server_names"] then
tls_info["server_names"] = string.format('<span title="%s">%s</span>', tls_info["server_names"], shortenString(tls_info["server_names"],128))
end
return tls_info
end