projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba7cf30
)
Ensure that legacy mode is correctly disabled.
author
Lars Hofhansl
<larsh@apache.org>
Fri, 13 Jul 2018 09:50:01 +0000
(
02:50
-0700)
committer
Lars Hofhansl
<larsh@apache.org>
Fri, 13 Jul 2018 09:50:01 +0000
(
02:50
-0700)
src/network/connectionthreads.cpp
patch
|
blob
|
history
diff --git
a/src/network/connectionthreads.cpp
b/src/network/connectionthreads.cpp
index c4e51211938c30690422d90aad22ba45397433e6..ccdd1423f3ac91428ceecbda5b52d79500cab0bc 100644
(file)
--- 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);