Merge pull request #8289 from Robyt3/Client-Address-Check-Cleanup

Remove unnecessary check excluding packets from wrong server
This commit is contained in:
heinrich5991 2024-05-01 15:24:34 +00:00 committed by GitHub
commit 213222b72b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1301,12 +1301,6 @@ static CServerCapabilities GetServerCapabilities(int Version, int Flags)
void CClient::ProcessServerPacket(CNetChunk *pPacket, int Conn, bool Dummy)
{
// only allow packets from the server we actually want
if(net_addr_comp(&pPacket->m_Address, &ServerAddress()))
{
return;
}
CUnpacker Unpacker;
Unpacker.Reset(pPacket->m_pData, pPacket->m_DataSize);
CMsgPacker Packer(NETMSG_EX, true);