diff --git a/ice-server/src/IceServer.cpp b/ice-server/src/IceServer.cpp index a512d5a049..59c36eae30 100644 --- a/ice-server/src/IceServer.cpp +++ b/ice-server/src/IceServer.cpp @@ -62,7 +62,14 @@ bool IceServer::packetVersionMatch(const udt::Packet& packet) { if (headerVersion == versionForPacketType(headerType)) { return true; } else { - qDebug() << "Packet version mismatch for packet" << headerType << " from" << packet.getSenderSockAddr(); + static QSet mismatchedClients; + + // only output a version mismatch once per ice-server run + if (!mismatchedClients.contains(packet.getSenderSockAddr())) { + mismatchedClients.insert(packet.getSenderSockAddr()); + + qDebug() << "Packet version mismatch for packet" << headerType << " from" << packet.getSenderSockAddr(); + } return false; }