From db3c08e90633e96942908251a3e1b1eaad786a43 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Mon, 10 Nov 2025 01:41:39 -0500 Subject: [PATCH] fix: modify sendPing to experiment with non-sourced packets to avoid hash verification issues --- src/OverteClient.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index 4d60751..85892b9 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -1539,12 +1539,13 @@ void OverteClient::sendPing(int fd, const sockaddr_storage& addr, socklen_t addr // Create NLPacket for Ping with correct version NLPacket packet(PacketType::Ping, PacketVersions::Ping_IncludeConnectionID, false); - // Set source ID first (this resizes header and writes it) - if (m_localID != 0) { - packet.setSourceID(m_localID); - } + // EXPERIMENTAL: Try sending as non-sourced packet to avoid hash verification issues + // The server should still be able to identify us from our source socket address + // 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++); // Add timestamp (microseconds since epoch)