mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes L7 protocol hyperlinks in the historical data browser
This commit is contained in:
parent
c3e1ea9d47
commit
eda4e7f1a7
1 changed files with 2 additions and 2 deletions
|
|
@ -140,7 +140,7 @@ if stats_type == "top_talkers" then
|
|||
if res ~= nil then
|
||||
for _, record in pairs(res) do
|
||||
record["label"] = shortenString(record["label"])
|
||||
record["label"] = '<a href="'..ntop.getHttpPrefix()..'/lua/host_details.lua?host='..record["addr"]..'">'..record["label"]..'</a>'
|
||||
record["label"] = '<a href="'..ntop.getHttpPrefix()..'/lua/host_details.lua?host='..record["addr"]..'" target="_blank">'..record["label"]..'</a>'
|
||||
end
|
||||
end
|
||||
elseif stats_type =="top_applications" then
|
||||
|
|
@ -152,7 +152,7 @@ elseif stats_type =="top_applications" then
|
|||
end
|
||||
if res ~= nil then
|
||||
for _, record in pairs(res) do
|
||||
record["label"] = '<a href="'..ntop.getHttpPrefix()..'/lua/hosts_stats.lua?protocol='..record["label"]..'">'..record["label"]..'</a>'
|
||||
record["label"] = '<a href="'..ntop.getHttpPrefix()..'/lua/hosts_stats.lua?protocol='..interface.getnDPIProtoName(tonumber(record["application"]))..'" target="_blank">'..record["label"]..'</a>'
|
||||
end
|
||||
end
|
||||
-- tprint(res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue