master #7

Merged
BRNSystems merged 95 commits from Mirrorlandia_minetest/minetest:master into master 2024-01-28 00:16:42 +01:00
Showing only changes of commit bdc124ba41 - Show all commits

@ -1018,6 +1018,13 @@ void ConnectionReceiveThread::receive(SharedBuffer<u8> &packetdata,
peer->SetFullyOpen(); peer->SetFullyOpen();
// Setup phase has a fixed timeout // Setup phase has a fixed timeout
peer->ResetTimeout(); peer->ResetTimeout();
} else if (!peer->isHalfOpen()) {
// If the peer talks to us without a peer ID when it has done so
// before something is definitely fishy.
LOG(derr_con << m_connection->getDesc()
<< " Peer " << peer_id << " sending without peer id?!"
" Ignoring." << std::endl);
return;
} }
auto *udpPeer = dynamic_cast<UDPPeer *>(&peer); auto *udpPeer = dynamic_cast<UDPPeer *>(&peer);