Replaced ProtocolId with Protocol Summary (#1189)

This commit is contained in:
RoyUP9
2022-07-07 12:05:59 +03:00
committed by GitHub
parent 274fbeb34a
commit 710411e112
20 changed files with 122 additions and 89 deletions

View File

@@ -22,7 +22,7 @@ func (e *DefaultEntryStreamerSocketConnector) SendEntry(socketId int, entry *tap
if params.EnableFullEntries {
message, _ = models.CreateFullEntryWebSocketMessage(entry)
} else {
protocol, ok := protocolsMap[entry.ProtocolId]
protocol, ok := protocolsMap[entry.Protocol.ToString()]
if !ok {
return fmt.Errorf("protocol not found, protocol: %v", protocol)
}