don't connect to unpublished NTCP2 addresses

This commit is contained in:
orignal 2018-07-18 14:19:12 -04:00
parent 910a9600bd
commit e0790700cd
4 changed files with 6 additions and 3 deletions

View file

@ -590,7 +590,7 @@ namespace transport
uint8_t * decrypted = new uint8_t[m_NextReceivedLen];
if (i2p::crypto::AEADChaCha20Poly1305 (m_NextReceivedBuffer, m_NextReceivedLen-16, nullptr, 0, m_ReceiveKey, nonce, decrypted, m_NextReceivedLen, false))
{
LogPrint (eLogInfo, "NTCP2: received message decrypted");
LogPrint (eLogDebug, "NTCP2: received message decrypted");
ProcessNextFrame (decrypted, m_NextReceivedLen-16);
ReceiveLength ();
}