Browse Source

Merge pull request #1952 from Vort/explicit0hops

allow 0 hops with explicitPeers
pull/1954/head
orignal 1 year ago committed by GitHub
parent
commit
d3cd8517b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libi2pd/TunnelPool.cpp

2
libi2pd/TunnelPool.cpp

@ -570,9 +570,9 @@ namespace tunnel @@ -570,9 +570,9 @@ namespace tunnel
bool TunnelPool::SelectExplicitPeers (Path& path, bool isInbound)
{
if (!m_ExplicitPeers->size ()) return false;
int numHops = isInbound ? m_NumInboundHops : m_NumOutboundHops;
if (numHops > (int)m_ExplicitPeers->size ()) numHops = m_ExplicitPeers->size ();
if (!numHops) return false;
for (int i = 0; i < numHops; i++)
{
auto& ident = (*m_ExplicitPeers)[i];

Loading…
Cancel
Save