mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:34:02 +03:00
Upgrade golangci-lint for 1.42
This commit is contained in:
@@ -49,8 +49,8 @@ func (s ServerHello) WelcomePacket() []byte {
|
||||
packet := buf.Bytes()
|
||||
|
||||
mac := hmac.New(sha256.New, config.C.Secret)
|
||||
mac.Write(s.clientHello.Random[:]) // nolint: errcheck
|
||||
mac.Write(packet) // nolint: errcheck
|
||||
mac.Write(s.clientHello.Random[:])
|
||||
mac.Write(packet)
|
||||
copy(packet[11:], mac.Sum(nil))
|
||||
|
||||
return packet
|
||||
|
||||
Reference in New Issue
Block a user