From 01ed435176b4bc6b4e84952f84e781bb0b7c4b8e Mon Sep 17 00:00:00 2001 From: Palapeli <26661008+mkwcat@users.noreply.github.com> Date: Sun, 23 Mar 2025 17:04:10 -0400 Subject: [PATCH] GPCM: Fix wrong public IP check --- gpcm/message.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gpcm/message.go b/gpcm/message.go index 80c75e7..61c31b4 100644 --- a/gpcm/message.go +++ b/gpcm/message.go @@ -163,21 +163,8 @@ func (g *GameSpySession) bestieMessage(command common.GameSpyCommand) { } if cmd == common.MatchReservation { - if common.IPFormatNoPortToInt(g.RemoteAddr) != int32(msgMatchData.Reservation.PublicIP) { - logging.Error(g.ModuleName, "RESERVATION: Public IP mismatch") - g.replyError(ErrMessage) - return - } - g.QR2IP = uint64(msgMatchData.Reservation.PublicIP) | (uint64(msgMatchData.Reservation.PublicPort) << 32) - } else if cmd == common.MatchResvOK { - if common.IPFormatNoPortToInt(g.RemoteAddr) != int32(msgMatchData.ResvOK.PublicIP) { - logging.Error(g.ModuleName, "RESV_OK: Public IP mismatch") - g.replyError(ErrMessage) - return - } - g.QR2IP = uint64(msgMatchData.ResvOK.PublicIP) | (uint64(msgMatchData.ResvOK.PublicPort) << 32) }