mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-18 23:16:37 +02:00
set SessionCreated state
This commit is contained in:
parent
303855f59a
commit
7300792033
2 changed files with 2 additions and 3 deletions
|
@ -77,8 +77,7 @@ namespace i2p
|
|||
}
|
||||
else // for SSU establishment
|
||||
{
|
||||
auto rnd = i2p::context.GetRandomNumberGenerator ();
|
||||
msg.msgID = htobe32 (rnd.GenerateWord32 ());
|
||||
msg.msgID = htobe32 (i2p::context.GetRandomNumberGenerator ().GenerateWord32 ());
|
||||
msg.timestamp = htobe64 (2); // netID = 2
|
||||
}
|
||||
return CreateI2NPMessage (eI2NPDeliveryStatus, (uint8_t *)&msg, sizeof (msg));
|
||||
|
|
2
SSU.cpp
2
SSU.cpp
|
@ -309,7 +309,7 @@ namespace ssu
|
|||
|
||||
// encrypt message with intro key
|
||||
FillHeaderAndEncrypt (PAYLOAD_TYPE_SESSION_CREATED, buf, 368, introKey, iv, introKey);
|
||||
m_State = eSessionStateRequestSent;
|
||||
m_State = eSessionStateCreatedSent;
|
||||
m_Server->Send (buf, 368, m_RemoteEndpoint);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue