fix: Correct IP latching order to prevent metadata overwrite
This commit is contained in:
@@ -125,11 +125,6 @@ func (c *Capturer) processStream(r io.Reader) {
|
||||
|
||||
// Detect start of SIP message
|
||||
if idx := findSIPStart(line); idx != -1 {
|
||||
// Latch the current network info for this message
|
||||
if c.currentNetInfo != nil {
|
||||
info := *c.currentNetInfo
|
||||
msgNetInfo = &info
|
||||
}
|
||||
|
||||
// Clean the line (remove prefix garbage)
|
||||
line = line[idx:]
|
||||
|
||||
Reference in New Issue
Block a user