mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
store relay session directly
This commit is contained in:
parent
2e8fa88fcb
commit
178dedf78c
3 changed files with 10 additions and 5 deletions
|
@ -462,7 +462,7 @@ namespace transport
|
|||
{
|
||||
RAND_bytes((uint8_t *)&m_SentRelayTag, 4);
|
||||
if (!m_SentRelayTag) m_SentRelayTag = 1;
|
||||
m_Server.AddRelay (m_SentRelayTag, m_RemoteEndpoint);
|
||||
m_Server.AddRelay (m_SentRelayTag, shared_from_this ());
|
||||
}
|
||||
htobe32buf (payload, m_SentRelayTag);
|
||||
payload += 4; // relay tag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue