mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
pick tunnels from exploratory pool for exploratory
This commit is contained in:
parent
13b2036e52
commit
24f0ff6c00
4 changed files with 23 additions and 3 deletions
|
@ -532,8 +532,9 @@ namespace data
|
|||
|
||||
void NetDb::Explore ()
|
||||
{
|
||||
auto outbound = i2p::tunnel::tunnels.GetNextOutboundTunnel ();
|
||||
auto inbound = i2p::tunnel::tunnels.GetNextInboundTunnel ();
|
||||
auto exploratoryPool = i2p::tunnel::tunnels.GetExploratoryPool ();
|
||||
auto outbound = exploratoryPool ? exploratoryPool->GetNextOutboundTunnel () : nullptr;
|
||||
auto inbound = exploratoryPool ? exploratoryPool->GetNextInboundTunnel () : nullptr;
|
||||
if (outbound && inbound)
|
||||
{
|
||||
CryptoPP::RandomNumberGenerator& rnd = i2p::context.GetRandomNumberGenerator ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue