From c16873691bd408b8deef074631322c28a0449f37 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 9 Nov 2025 01:02:48 -0500 Subject: [PATCH] feat: enhance Ping packet handling to include local ID sourcing --- src/OverteClient.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index a4a19ca..e1b18b6 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -1013,8 +1013,12 @@ void OverteClient::sendDomainListRequest() { } void OverteClient::sendPing(int fd, const sockaddr_storage& addr, socklen_t addrLen) { - // Create NLPacket for Ping with correct version + // Create NLPacket for Ping with correct version - sourced if we have a local ID NLPacket packet(PacketType::Ping, PacketVersions::Ping_IncludeConnectionID, false); + if (m_localID != 0) { + packet.setSourced(true); + packet.setSourceID(m_localID); + } packet.setSequenceNumber(m_sequenceNumber++); // Add timestamp (microseconds since epoch)