From 8d6ab0f8724f0fe9d2edbbdcf1f144988aca8228 Mon Sep 17 00:00:00 2001 From: mkwcat Date: Mon, 6 May 2024 18:32:13 -0400 Subject: [PATCH] GameStats: Encrypt challenge message --- gamestats/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gamestats/main.go b/gamestats/main.go index 43c7fab..023059e 100644 --- a/gamestats/main.go +++ b/gamestats/main.go @@ -84,7 +84,7 @@ func NewConnection(index uint64, address string) { WriteBuffer: []byte{}, } - payload := common.CreateGameSpyMessage(common.GameSpyCommand{ + session.Write(common.GameSpyCommand{ Command: "lc", CommandValue: "1", OtherValues: map[string]string{ @@ -92,7 +92,8 @@ func NewConnection(index uint64, address string) { "id": "1", }, }) - common.SendPacket(ServerName, index, []byte(payload)) + common.SendPacket(ServerName, index, []byte(session.WriteBuffer)) + session.WriteBuffer = []byte{} logging.Notice(session.ModuleName, "Connection established from", address)