mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
copy compatible transports to new tunnel
This commit is contained in:
parent
f8c390cdd3
commit
3f63f15b16
@ -588,9 +588,7 @@ namespace tunnel
|
|||||||
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())
|
if (m_NumInboundHops > 0 && tunnel->GetPeers().size())
|
||||||
{
|
config = std::make_shared<TunnelConfig>(tunnel->GetPeers (), tunnel->IsShortBuildMessage (), tunnel->GetFarEndTransports ());
|
||||||
config = std::make_shared<TunnelConfig>(tunnel->GetPeers (), tunnel->IsShortBuildMessage ());
|
|
||||||
}
|
|
||||||
if (!m_NumInboundHops || config)
|
if (!m_NumInboundHops || config)
|
||||||
{
|
{
|
||||||
auto newTunnel = tunnels.CreateInboundTunnel (config, shared_from_this(), outboundTunnel);
|
auto newTunnel = tunnels.CreateInboundTunnel (config, shared_from_this(), outboundTunnel);
|
||||||
@ -657,7 +655,7 @@ namespace tunnel
|
|||||||
if (m_NumOutboundHops > 0 && tunnel->GetPeers().size())
|
if (m_NumOutboundHops > 0 && tunnel->GetPeers().size())
|
||||||
{
|
{
|
||||||
config = std::make_shared<TunnelConfig>(tunnel->GetPeers (), inboundTunnel->GetNextTunnelID (),
|
config = std::make_shared<TunnelConfig>(tunnel->GetPeers (), inboundTunnel->GetNextTunnelID (),
|
||||||
inboundTunnel->GetNextIdentHash (), inboundTunnel->IsShortBuildMessage ());
|
inboundTunnel->GetNextIdentHash (), inboundTunnel->IsShortBuildMessage (), tunnel->GetFarEndTransports ());
|
||||||
}
|
}
|
||||||
if (!m_NumOutboundHops || config)
|
if (!m_NumOutboundHops || config)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user