mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Fixes historical flow s7comm details
This commit is contained in:
parent
a8a31a694c
commit
3d569d1af9
2 changed files with 17 additions and 3 deletions
|
|
@ -2133,8 +2133,12 @@ function historical_flow_utils.convertToLiveFlowFormat(historical_flow)
|
|||
require "flow_utils"
|
||||
local json = require "dkjson"
|
||||
local proto_info = json.decode(historical_flow["PROTOCOL_INFO_JSON"])
|
||||
local modbus_info = formatModbusInfo(proto_info.proto)
|
||||
flow.modbus = modbus_info
|
||||
if proto_info and proto_info.proto then
|
||||
local modbus_info = formatModbusInfo(proto_info.proto)
|
||||
local s7comm_info = formatS7CommInfo(proto_info.proto)
|
||||
flow.modbus = modbus_info
|
||||
flow.s7comm = s7comm_info
|
||||
end
|
||||
end
|
||||
|
||||
return flow
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue