diff options
author | Lars Hofhansl <larsh@apache.org> | 2018-07-13 02:50:01 -0700 |
---|---|---|
committer | Lars Hofhansl <larsh@apache.org> | 2018-07-13 02:50:01 -0700 |
commit | 93c0b3b8fbe0fbed45374df1818cfeb571976350 (patch) | |
tree | b7885d035bf5a958ffe66bf47ca3c76b740abf2c /src | |
parent | ba7cf30df93836247a9232c285ca85659d6578e5 (diff) | |
download | minetest-93c0b3b8fbe0fbed45374df1818cfeb571976350.tar.gz minetest-93c0b3b8fbe0fbed45374df1818cfeb571976350.tar.bz2 minetest-93c0b3b8fbe0fbed45374df1818cfeb571976350.zip |
Ensure that legacy mode is correctly disabled.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/connectionthreads.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<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); |