mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes MySQL flow idx for nprobe databases
This commit is contained in:
parent
4983dd04a0
commit
bef7e7bf2e
3 changed files with 3 additions and 9 deletions
|
|
@ -176,13 +176,7 @@ else
|
|||
|
||||
flow["PROTOCOL"] = base.."&protocol=&port=&host=&l4proto="..flow["PROTOCOL"].."'>"..pname.."</A>"
|
||||
flow["L7_PROTO"] = base.."&port=&host=&l4proto=&protocol="..flow["L7_PROTO"].."'>"..getApplicationLabel(interface.getnDPIProtoName(tonumber(flow["L7_PROTO"]))).."</A>"
|
||||
|
||||
-- nProbe/related database doesn't handle idx so we have to disable the info
|
||||
if flow["idx"] ~= "-1" then
|
||||
flow["FLOW_URL"] = base.."&row_id="..flow["idx"].."&version="..ip_version.."'><span class='label label-info'>Info</span></A>"
|
||||
else
|
||||
flow["FLOW_URL"] = "<span class='label label-default'>Info</span></A>"
|
||||
end
|
||||
flow["FLOW_URL"] = base.."&row_id="..flow["idx"].."&version="..ip_version.."'><span class='label label-info'>Info</span></A>"
|
||||
|
||||
if flow["PROFILE"] ~= nil and flow["PROFILE"] ~="" then
|
||||
flow["INFO"] = "<span class='label label-primary'>"..flow["PROFILE"].."</span> "..flow["INFO"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue