fix: Correct IP latching order to prevent metadata overwrite

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-19 16:07:18 +01:00
parent 0c61db8f5b
commit ee7201ce57
2 changed files with 0 additions and 11 deletions

View File

@@ -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:]

View File

@@ -148,12 +148,6 @@ func (c *LocalCapturer) processStream(r io.Reader) {
// Detect start of SIP message
if idx := findSIPStart(line); idx != -1 {
logger.Debug("SIP Start detected: %s", line)
// Latch the current network info for this message
if c.currentNetInfo != nil {
// Make a copy
info := *c.currentNetInfo
msgNetInfo = &info
}
// Clean the line (remove prefix garbage)
line = line[idx:]