feat: add hex dump logging for the first 32 bytes of domain connect request packets

This commit is contained in:
MayaTheShy
2025-11-08 17:26:26 -05:00
parent 373a77fd68
commit 978d530b93

View File

@@ -542,6 +542,12 @@ void OverteClient::sendDomainConnectRequest() {
if (!m_username.empty()) {
std::cout << "[OverteClient] Username: " << m_username << std::endl;
}
// Hex dump first 32 bytes
std::cout << "[OverteClient] >>> Hex: ";
for (size_t i = 0; i < std::min(size_t(32), packet.size()); ++i) {
printf("%02x ", (unsigned char)packet[i]);
}
std::cout << std::endl;
} else {
std::cerr << "[OverteClient] Failed to send domain connect request: " << strerror(errno) << std::endl;
}