From 53ea66fdb7dddf65b484996af7b1df4408c35e0f Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 31 Dec 2021 00:53:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=88=86=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lower/nic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lower/nic.go b/lower/nic.go index 17ca98f..e230fe9 100644 --- a/lower/nic.go +++ b/lower/nic.go @@ -102,7 +102,7 @@ func execute(c string, args ...string) { func send(m *link.Me, packet []byte) (n int, rem []byte) { if !waterutil.IsIPv4(packet) { if waterutil.IsIPv6(packet) { - n = int(binary.BigEndian.Uint16(packet[4:6])) + 20 + n = int(binary.BigEndian.Uint16(packet[4:6])) + 40 rem = packet[n:] logrus.Warnln("[lower] skip to send", n, "bytes ipv6 packet") return