fix: modify sendPing to experiment with non-sourced packets to avoid hash verification issues
This commit is contained in:
@@ -1539,12 +1539,13 @@ void OverteClient::sendPing(int fd, const sockaddr_storage& addr, socklen_t addr
|
|||||||
// Create NLPacket for Ping with correct version
|
// Create NLPacket for Ping with correct version
|
||||||
NLPacket packet(PacketType::Ping, PacketVersions::Ping_IncludeConnectionID, false);
|
NLPacket packet(PacketType::Ping, PacketVersions::Ping_IncludeConnectionID, false);
|
||||||
|
|
||||||
// Set source ID first (this resizes header and writes it)
|
// EXPERIMENTAL: Try sending as non-sourced packet to avoid hash verification issues
|
||||||
if (m_localID != 0) {
|
// The server should still be able to identify us from our source socket address
|
||||||
packet.setSourceID(m_localID);
|
// if (m_localID != 0) {
|
||||||
}
|
// packet.setSourceID(m_localID);
|
||||||
|
// }
|
||||||
|
|
||||||
// Then set sequence number (this updates the header without resizing)
|
// Set sequence number
|
||||||
packet.setSequenceNumber(m_sequenceNumber++);
|
packet.setSequenceNumber(m_sequenceNumber++);
|
||||||
|
|
||||||
// Add timestamp (microseconds since epoch)
|
// Add timestamp (microseconds since epoch)
|
||||||
|
|||||||
Reference in New Issue
Block a user