mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-24 04:27:08 +08:00
chore: make lint happy
This commit is contained in:
@@ -23,7 +23,7 @@ func (l *Link) WriteAndPut(p *head.Packet, istransfer bool) (n int, err error) {
|
|||||||
if l.mturandomrange > 0 {
|
if l.mturandomrange > 0 {
|
||||||
mtu -= uint16(rand.Intn(int(l.mturandomrange)))
|
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 {
|
if !istransfer {
|
||||||
l.encrypt(p, sndcnt, teatype)
|
l.encrypt(p, sndcnt, teatype)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user