Browse Source

add relaytag after session established

pull/759/head
orignal 8 years ago
parent
commit
585a6c29d4
  1. 3
      SSUSession.cpp

3
SSUSession.cpp

@ -462,7 +462,6 @@ namespace transport @@ -462,7 +462,6 @@ namespace transport
{
RAND_bytes((uint8_t *)&m_SentRelayTag, 4);
if (!m_SentRelayTag) m_SentRelayTag = 1;
m_Server.AddRelay (m_SentRelayTag, shared_from_this ());
}
htobe32buf (payload, m_SentRelayTag);
payload += 4; // relay tag
@ -887,6 +886,8 @@ namespace transport @@ -887,6 +886,8 @@ namespace transport
transports.PeerConnected (shared_from_this ());
if (m_IsPeerTest)
SendPeerTest ();
if (m_SentRelayTag)
m_Server.AddRelay (m_SentRelayTag, shared_from_this ());
m_LastActivityTimestamp = i2p::util::GetSecondsSinceEpoch ();
}

Loading…
Cancel
Save