mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-19 21:25:30 +00:00
select few introducers at the time
This commit is contained in:
parent
01e591b261
commit
9c8c3b9174
@ -676,10 +676,9 @@ namespace transport
|
||||
{
|
||||
auto session = v4 ? GetRandomV4Session (filter) : GetRandomV6Session (filter);
|
||||
if (session)
|
||||
{
|
||||
ret.insert (session.get ());
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@ -771,7 +770,7 @@ namespace transport
|
||||
if (numIntroducers < SSU_MAX_NUM_INTRODUCERS)
|
||||
{
|
||||
// create new
|
||||
auto sessions = FindIntroducers (SSU_MAX_NUM_INTRODUCERS, v4);
|
||||
auto sessions = FindIntroducers (SSU_MAX_NUM_INTRODUCERS - numIntroducers, v4);
|
||||
for (const auto& it1: sessions)
|
||||
{
|
||||
const auto& ep = it1->GetRemoteEndpoint ();
|
||||
|
Loading…
Reference in New Issue
Block a user