mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-05-25 14:15:04 +00:00
don't include remote ident hash to SYN packet if no signature
This commit is contained in:
+12
-4
@@ -955,10 +955,18 @@ namespace stream
|
||||
if (m_Status == eStreamStatusNew && !m_SendStreamID && m_RemoteIdentity)
|
||||
{
|
||||
// first SYN packet
|
||||
packet[size] = 8;
|
||||
size++; // NACK count
|
||||
memcpy (packet + size, m_RemoteIdentity->GetIdentHash (), 32);
|
||||
size += 32;
|
||||
if (m_DontSign)
|
||||
{
|
||||
// remote ident is useless without signature, don't include it
|
||||
packet[size] = 0; size++; // NACK count
|
||||
}
|
||||
else
|
||||
{
|
||||
packet[size] = 8;
|
||||
size++; // NACK count
|
||||
memcpy (packet + size, m_RemoteIdentity->GetIdentHash (), 32);
|
||||
size += 32;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user