mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Allow connecting clients to compress
TODO: Look for better solution
This commit is contained in:
parent
c4d437bc0f
commit
0b256ff653
|
@ -662,7 +662,7 @@ int CNetServer::Recv(CNetChunk *pChunk)
|
|||
else
|
||||
{
|
||||
// not found, client that wants to connect
|
||||
if(CNetBase::UnpackPacket(m_RecvUnpacker.m_aBuffer, Bytes, &m_RecvUnpacker.m_Data, /* decompress = */ false) == 0)
|
||||
if(CNetBase::UnpackPacket(m_RecvUnpacker.m_aBuffer, Bytes, &m_RecvUnpacker.m_Data, /* decompress = */ true) == 0)
|
||||
{
|
||||
if(IsDDNetControlMsg(&m_RecvUnpacker.m_Data))
|
||||
// got ddnet control msg
|
||||
|
|
Loading…
Reference in a new issue