Fixes MySQL flow idx for nprobe databases

This commit is contained in:
Simone Mainardi 2018-03-02 11:00:22 +01:00
parent 4983dd04a0
commit bef7e7bf2e
3 changed files with 3 additions and 9 deletions

View file

@ -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>&nbsp;"..flow["INFO"]