mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
Merge pull request #8289 from Robyt3/Client-Address-Check-Cleanup
Remove unnecessary check excluding packets from wrong server
This commit is contained in:
commit
213222b72b
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue