Removed useless condition

This commit is contained in:
Matteo Biscosi 2023-07-14 12:09:55 +00:00
parent 30fc1d7976
commit 7b8ad8d108

View file

@ -794,7 +794,7 @@ function driver:listSeries(schema, tags_filter, wildcard_tags, start_time, not_p
toadd = true
end
elseif ((wildcard_tag ~= "protocol") or
((L4_PROTO_KEYS[value] == nil) and (interface.getnDPIProtoId(value) ~= -1) and interface.getnDPIProtoId(value) ~= 0))
((L4_PROTO_KEYS[value] == nil) and interface.getnDPIProtoId(value) ~= 0))
and ((wildcard_tag ~= "category") or (interface.getnDPICategoryId(value) ~= -1)) then
toadd = true
end