From fad6172b400c9a644de03ccbddfe2804ff409505 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sun, 4 Apr 2021 00:31:18 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- packets/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packets/queue.go b/packets/queue.go index affc9ad4..7bca2840 100644 --- a/packets/queue.go +++ b/packets/queue.go @@ -199,7 +199,7 @@ func (q *Queue) worker() { srcIP = ip4.SrcIP dstIP = ip4.DstIP } else { - ip6 := lip4.(*layers.IPv6) + ip6 := lip6.(*layers.IPv6) srcIP = ip6.SrcIP dstIP = ip6.DstIP }