Compare commits

...
2 Commits
Author SHA1 Message Date
Tixx 5c39216c44 Make log more readable 2026-08-14 02:27:22 +02:00
Tixx 5efd264355 Log more udp debug 2026-08-13 23:31:52 +02:00
+7 -1
View File
@@ -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;
}