Merge pull request #995 from DimaGolomozy/fix-Src-Dst-Add-in-message

when using the `RealIpHeader` flag, it tries to append the real ip from the msg as a header
but the `SrcAddr` was never assigned with the IP, so we get empty string all the time
![image](https://user-images.githubusercontent.com/9161830/129594595-96c0cd53-a28f-4b72-9f6d-c782e23af5dc.png)
This commit is contained in:
Leonid Bugaev
2021-08-16 19:11:40 +03:00
committed by GitHub
+2
View File
@@ -350,6 +350,8 @@ func (parser *MessageParser) processPacket(pckt *Packet) {
m = new(Message)
m.Direction = pckt.Direction
m.SrcAddr = pckt.SrcIP.String()
m.DstAddr = pckt.DstIP.String()
parser.m[mIDX][mID] = m