TCP server: log IP addresses in more places

This commit is contained in:
SChernykh
2021-09-05 20:20:28 +02:00
parent f3ee444aed
commit 884d0f180a
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1121,7 +1121,7 @@ bool P2PServer::P2PClient::on_handshake_challenge(const uint8_t* buf)
memcpy(&peer_id, buf + CHALLENGE_SIZE, sizeof(uint64_t));
if (peer_id == server->get_peerId()) {
LOGWARN(5, "tried to connect to self");
LOGWARN(5, "tried to connect to self at " << static_cast<const char*>(m_addrString));
return false;
}