fix: revert to sending periodic ping instead of DomainListRequest to maintain HMAC verification
This commit is contained in:
@@ -420,10 +420,8 @@ void OverteClient::poll() {
|
|||||||
auto now = std::chrono::steady_clock::now();
|
auto now = std::chrono::steady_clock::now();
|
||||||
|
|
||||||
if (std::chrono::duration_cast<std::chrono::seconds>(now - lastPing).count() >= 1) {
|
if (std::chrono::duration_cast<std::chrono::seconds>(now - lastPing).count() >= 1) {
|
||||||
// EXPERIMENTAL: Send DomainListRequest instead of Ping to avoid HMAC verification issues
|
std::cout << "[OverteClient] Sending periodic ping to domain (localID=" << m_localID << ")" << std::endl;
|
||||||
// DomainListRequest is non-sourced and non-verified
|
sendPing(m_udpFd, m_udpAddr, m_udpAddrLen);
|
||||||
std::cout << "[OverteClient] Sending periodic DomainListRequest (keep-alive, localID=" << m_localID << ")" << std::endl;
|
|
||||||
sendDomainListRequest();
|
|
||||||
lastPing = now;
|
lastPing = now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user