Host redirect URL now contains the hostname and not the IP, if present

This commit is contained in:
Luca Deri 2022-05-02 10:57:36 +02:00
parent ab217cac6e
commit 3c660a513a
2 changed files with 149 additions and 140 deletions

View file

@ -2127,6 +2127,7 @@ function hostinfo2detailshref(host_info, href_params, href_value, href_tooltip,
if(show_href) then
local hostdetails_url = hostinfo2detailsurl(host_info, href_params, href_check)
if not isEmptyString(hostdetails_url)then
res = string.format("<a href='%s' data-bs-toggle='tooltip' title='%s'>%s</a>",
hostdetails_url, href_tooltip or '', href_value or '')