From c6af6b239e343fee18eb71da2ffd1a99e7e7d327 Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 31 Dec 2021 01:08:44 +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 e230fe9..bec191a 100644 --- a/lower/nic.go +++ b/lower/nic.go @@ -58,7 +58,7 @@ func (nc *NIC) Start(m *link.Me) { logrus.Infoln("[lower] recv write", n, "bytes packet to nic") } }() - buf := make([]byte, 32704) // 头部 52 + TEA 加密补足 16倍数 + buf := make([]byte, 65536) // 永远不可能超界 for nc.hasstart { // 从 NIC 发送 packet := buf n, err := nc.ifce.Read(packet)