]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Ensure that legacy mode is correctly disabled.
authorLars Hofhansl <larsh@apache.org>
Fri, 13 Jul 2018 09:50:01 +0000 (02:50 -0700)
committerLars Hofhansl <larsh@apache.org>
Fri, 13 Jul 2018 09:50:01 +0000 (02:50 -0700)
src/network/connectionthreads.cpp

index c4e51211938c30690422d90aad22ba45397433e6..ccdd1423f3ac91428ceecbda5b52d79500cab0bc 100644 (file)
@@ -1208,6 +1208,10 @@ SharedBuffer<u8> ConnectionReceiveThread::handlePacketType_Control(Channel *chan
                        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;
 
                SharedBuffer<u8> reply(2);