From: Lars Hofhansl Date: Fri, 13 Jul 2018 09:50:01 +0000 (-0700) Subject: Ensure that legacy mode is correctly disabled. X-Git-Tag: 5.0.0~303 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93c0b3b8fbe0fbed45374df1818cfeb571976350;p=oweals%2Fminetest.git Ensure that legacy mode is correctly disabled. --- diff --git a/src/network/connectionthreads.cpp b/src/network/connectionthreads.cpp index c4e512119..ccdd1423f 100644 --- a/src/network/connectionthreads.cpp +++ b/src/network/connectionthreads.cpp @@ -1208,6 +1208,10 @@ SharedBuffer ConnectionReceiveThread::handlePacketType_Control(Channel *chan m_connection->SetPeerID(peer_id_new); } + // set non legacy mode locally + dynamic_cast(peer)->setNonLegacyPeer(); + + // request the same from the remote side ConnectionCommand cmd; SharedBuffer reply(2);