mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
set established state for zero-hops tunnles
This commit is contained in:
parent
96a713afeb
commit
70bd16adf6
1 changed files with 4 additions and 1 deletions
|
@ -818,13 +818,16 @@ namespace tunnel
|
||||||
void Tunnels::CreateZeroHopsInboundTunnel ()
|
void Tunnels::CreateZeroHopsInboundTunnel ()
|
||||||
{
|
{
|
||||||
auto inboundTunnel = std::make_shared<ZeroHopsInboundTunnel> ();
|
auto inboundTunnel = std::make_shared<ZeroHopsInboundTunnel> ();
|
||||||
|
inboundTunnel->SetState (eTunnelStateEstablished);
|
||||||
m_InboundTunnels.push_back (inboundTunnel);
|
m_InboundTunnels.push_back (inboundTunnel);
|
||||||
m_Tunnels[inboundTunnel->GetTunnelID ()] = inboundTunnel;
|
m_Tunnels[inboundTunnel->GetTunnelID ()] = inboundTunnel;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Tunnels::CreateZeroHopsOutboundTunnel ()
|
void Tunnels::CreateZeroHopsOutboundTunnel ()
|
||||||
{
|
{
|
||||||
m_OutboundTunnels.push_back (std::make_shared<ZeroHopsOutboundTunnel> ());
|
auto outboundTunnel = std::make_shared<ZeroHopsOutboundTunnel> ();
|
||||||
|
outboundTunnel->SetState (eTunnelStateEstablished);
|
||||||
|
m_OutboundTunnels.push_back (outboundTunnel);
|
||||||
// we don't insert into m_Tunnels
|
// we don't insert into m_Tunnels
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue