Fixes recording not showing up with view interfaces

This commit is contained in:
Simone Mainardi 2021-08-17 20:52:11 +02:00
parent 83d995a92c
commit fef2a46eca

View file

@ -249,6 +249,7 @@ end
local has_traffic_recording_page = (recording_utils.isAvailable()
and (is_packet_interface
or (ifstats.isView) -- Allows view interfaces (e.g., views of ZMQ)
or ((recording_utils.isSupportedZMQInterface(ifid) and not table.empty(ext_interfaces)))
or (recording_utils.getCurrentTrafficRecordingProvider(ifid) ~= "ntopng")))