Skip to content

Commit 434eed1

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 6d99a18 + 01ed435 commit 434eed1

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

gpcm/message.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,21 +163,8 @@ func (g *GameSpySession) bestieMessage(command common.GameSpyCommand) {
163163
}
164164

165165
if cmd == common.MatchReservation {
166-
if common.IPFormatNoPortToInt(g.RemoteAddr) != int32(msgMatchData.Reservation.PublicIP) {
167-
logging.Error(g.ModuleName, "RESERVATION: Public IP mismatch")
168-
g.replyError(ErrMessage)
169-
return
170-
}
171-
172166
g.QR2IP = uint64(msgMatchData.Reservation.PublicIP) | (uint64(msgMatchData.Reservation.PublicPort) << 32)
173-
174167
} else if cmd == common.MatchResvOK {
175-
if common.IPFormatNoPortToInt(g.RemoteAddr) != int32(msgMatchData.ResvOK.PublicIP) {
176-
logging.Error(g.ModuleName, "RESV_OK: Public IP mismatch")
177-
g.replyError(ErrMessage)
178-
return
179-
}
180-
181168
g.QR2IP = uint64(msgMatchData.ResvOK.PublicIP) | (uint64(msgMatchData.ResvOK.PublicPort) << 32)
182169
}
183170

0 commit comments

Comments
 (0)