mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-22 16:17:40 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c39216c44 | ||
|
|
5efd264355 |
+7
-1
@@ -198,7 +198,13 @@ void TNetwork::UDPServerMain() {
|
||||
if (Client->GetID() == ID) {
|
||||
if (Client->GetUDPAddr() == boost::asio::ip::udp::endpoint { } && !Client->IsUDPConnected() && !Client->GetMagic().empty()) {
|
||||
if (Data.size() != 66) {
|
||||
beammp_debugf("Invalid size for UDP value. IP: {} ID: {}", remote_client_ep.address().to_string(), ID);
|
||||
beammp_debugf("Invalid size for UDP value. IP: {} ID: {}, Size: {}", remote_client_ep.address().to_string(), ID, Data.size());
|
||||
std::stringstream hexData;
|
||||
for (auto c : Data) {
|
||||
hexData << std::hex << std::setw(2) << std::setfill('0') << static_cast<int>(c);
|
||||
hexData << " ";
|
||||
}
|
||||
beammp_debug(hexData.str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user