From 797c63a8147a46585834c29e55e31b7d6e2d7ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 11 Jul 2024 22:33:42 +0900 Subject: [PATCH] chore: make lint happy --- gold/link/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gold/link/send.go b/gold/link/send.go index 229479c..791f497 100644 --- a/gold/link/send.go +++ b/gold/link/send.go @@ -23,7 +23,7 @@ func (l *Link) WriteAndPut(p *head.Packet, istransfer bool) (n int, err error) { if l.mturandomrange > 0 { mtu -= uint16(rand.Intn(int(l.mturandomrange))) } - logrus.Debugln("[send] mtu:", mtu, ", addt:", uint16(sndcnt)&0x0fff, ", key index:", teatype) + logrus.Debugln("[send] mtu:", mtu, ", addt:", sndcnt&0x07ff, ", key index:", teatype) if !istransfer { l.encrypt(p, sndcnt, teatype) }