From 3a9b821edd27bb7bc52a64a7f4c5c8aec84bd985 Mon Sep 17 00:00:00 2001 From: JackDoan Date: Wed, 18 Feb 2026 20:34:31 -0600 Subject: [PATCH] name nit --- outside.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/outside.go b/outside.go index 2e75b59b..b2cbf123 100644 --- a/outside.go +++ b/outside.go @@ -340,8 +340,8 @@ func parseV6(data []byte, incoming bool, fp *firewall.Packet) error { } fp.Protocol = uint8(proto) fp.LocalPort = 0 //incoming vs outgoing doesn't matter for icmpv6 - code := data[offset+1] - switch code { + icmptype := data[offset+1] + switch icmptype { case layers.ICMPv6TypeEchoRequest, layers.ICMPv6TypeEchoReply: fp.RemotePort = binary.BigEndian.Uint16(data[offset+4 : offset+6]) //identifier default: