diff --git a/internal/capture/capturer.go b/internal/capture/capturer.go index b3ef53e..efa52d4 100644 --- a/internal/capture/capturer.go +++ b/internal/capture/capturer.go @@ -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:] diff --git a/internal/capture/local.go b/internal/capture/local.go index 555a73a..cf1671a 100644 --- a/internal/capture/local.go +++ b/internal/capture/local.go @@ -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:]