Fixes Local HTTP Servers no data (#5817)

This commit is contained in:
MatteoBiscosi 2021-08-30 12:57:59 +02:00
parent a69d6d3475
commit c4e8c9e499
2 changed files with 13 additions and 13 deletions

View file

@ -116,12 +116,12 @@ for _key, _value in pairsByKeys(vals, funct) do
local k = string.gsub(key, "%.", "___") -- Needed as JQuery does not like . in id= field
print('\"key\" : \"'.. k ..'\",\n')
print(' \"column_http_virtual_host\" : \"<A class="ntopng-external-link" href=\'http://'..key..'\'>'..key.."</A> <i class='fas fa-external-link-alt'></i>")
print(' \"column_http_virtual_host\" : \"<A class=\'ntopng-external-link\' href=\'http://'..key..'\'>'..key.." <i class=\'fas fa-external-link-alt\'></i></A>")
print(" <A HREF='")
print(" <A HREF=\'")
local url = ntop.getHttpPrefix().."/lua/flows_stats.lua?vhost="..key
print(url.."'>")
print("<i class='fas fa-search-plus fa-lg'></i>")
print(url.."\'>")
print("<i class=\'fas fa-search-plus fa-lg\'></i>")
print("</A>")
print("\",\n")
print(" \"column_server_ip\" : \""..ip2detailshref(value["server.ip"], value["server.vlan"], {page = "http"}, value["server.ip"]).."\"")