Ensure that legacy mode is correctly disabled.

master
Lars Hofhansl 2018-07-13 02:50:01 -07:00
parent ba7cf30df9
commit 93c0b3b8fb
1 changed files with 4 additions and 0 deletions

View 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);