mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18:13:46 +01:00
Ensure that legacy mode is correctly disabled.
This commit is contained in:
parent
ba7cf30df9
commit
93c0b3b8fb
@ -1208,6 +1208,10 @@ SharedBuffer<u8> ConnectionReceiveThread::handlePacketType_Control(Channel *chan
|
|||||||
m_connection->SetPeerID(peer_id_new);
|
m_connection->SetPeerID(peer_id_new);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set non legacy mode locally
|
||||||
|
dynamic_cast<UDPPeer *>(peer)->setNonLegacyPeer();
|
||||||
|
|
||||||
|
// request the same from the remote side
|
||||||
ConnectionCommand cmd;
|
ConnectionCommand cmd;
|
||||||
|
|
||||||
SharedBuffer<u8> reply(2);
|
SharedBuffer<u8> reply(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user