From 826756eb6e0c3f2ae0026f29f406fff7f625d316 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 14 Apr 2024 19:13:56 +0100 Subject: [PATCH] rename comparand arg --- pkg/udpproxy/validator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/udpproxy/validator.go b/pkg/udpproxy/validator.go index 6ef4d8c..f60b405 100644 --- a/pkg/udpproxy/validator.go +++ b/pkg/udpproxy/validator.go @@ -24,8 +24,8 @@ func newValidator() validator { return v } -func (v *validator) compare(buf, header []byte) bool { - return bytes.Equal(buf[:len(header)], header) +func (v *validator) compare(buf, c []byte) bool { + return bytes.Equal(buf[:len(c)], c) } func (v *validator) isRconRequestPacket(buf []byte) bool {