mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-10 01:10:32 +00:00
be concise
This commit is contained in:
parent
008a064764
commit
7b4fc19fca
@ -491,7 +491,10 @@ namespace tunnel
|
|||||||
outboundTunnel = tunnels.GetNextOutboundTunnel ();
|
outboundTunnel = tunnels.GetNextOutboundTunnel ();
|
||||||
LogPrint (eLogDebug, "Tunnels: Re-creating destination inbound tunnel...");
|
LogPrint (eLogDebug, "Tunnels: Re-creating destination inbound tunnel...");
|
||||||
std::shared_ptr<TunnelConfig> config;
|
std::shared_ptr<TunnelConfig> config;
|
||||||
if (m_NumInboundHops > 0 && tunnel->GetPeers().size() > 0) config = std::make_shared<TunnelConfig>(tunnel->GetPeers ());
|
if (m_NumInboundHops > 0 && tunnel->GetPeers().size())
|
||||||
|
{
|
||||||
|
config = std::make_shared<TunnelConfig>(tunnel->GetPeers ());
|
||||||
|
}
|
||||||
if (m_NumInboundHops == 0 || config)
|
if (m_NumInboundHops == 0 || config)
|
||||||
{
|
{
|
||||||
auto newTunnel = tunnels.CreateInboundTunnel (config, outboundTunnel);
|
auto newTunnel = tunnels.CreateInboundTunnel (config, outboundTunnel);
|
||||||
@ -536,7 +539,7 @@ namespace tunnel
|
|||||||
{
|
{
|
||||||
LogPrint (eLogDebug, "Tunnels: Re-creating destination outbound tunnel...");
|
LogPrint (eLogDebug, "Tunnels: Re-creating destination outbound tunnel...");
|
||||||
std::shared_ptr<TunnelConfig> config;
|
std::shared_ptr<TunnelConfig> config;
|
||||||
if (tunnel->GetPeers().size() > 0 && m_NumOutboundHops > 0)
|
if (m_NumOutboundHops > 0 && tunnel->GetPeers().size())
|
||||||
{
|
{
|
||||||
config = std::make_shared<TunnelConfig>(tunnel->GetPeers (), inboundTunnel->GetNextTunnelID (), inboundTunnel->GetNextIdentHash ());
|
config = std::make_shared<TunnelConfig>(tunnel->GetPeers (), inboundTunnel->GetNextTunnelID (), inboundTunnel->GetNextIdentHash ());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user