mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Fix typos
This commit is contained in:
parent
aead9db971
commit
73b9c0302b
8 changed files with 15 additions and 15 deletions
|
@ -408,7 +408,7 @@ namespace transport
|
|||
return it->second;
|
||||
it++;
|
||||
}
|
||||
// not found, try from begining
|
||||
// not found, try from beginning
|
||||
it = m_Sessions.begin ();
|
||||
while (it != m_Sessions.end () && ind)
|
||||
{
|
||||
|
@ -654,14 +654,14 @@ namespace transport
|
|||
uint32_t relayTag = 0;
|
||||
if (!address->ssu->introducers.empty ())
|
||||
{
|
||||
std::vector<int> indicies;
|
||||
for (int i = 0; i < (int)address->ssu->introducers.size (); i++) indicies.push_back(i);
|
||||
if (indicies.size () > 1)
|
||||
std::shuffle (indicies.begin(), indicies.end(), std::mt19937(std::random_device()()));
|
||||
std::vector<int> indices;
|
||||
for (int i = 0; i < (int)address->ssu->introducers.size (); i++) indices.push_back(i);
|
||||
if (indices.size () > 1)
|
||||
std::shuffle (indices.begin(), indices.end(), std::mt19937(std::random_device()()));
|
||||
|
||||
for (auto i: indicies)
|
||||
for (auto i: indices)
|
||||
{
|
||||
const auto& introducer = address->ssu->introducers[indicies[i]];
|
||||
const auto& introducer = address->ssu->introducers[indices[i]];
|
||||
if (introducer.iTag && ts < introducer.iExp)
|
||||
{
|
||||
r = i2p::data::netdb.FindRouter (introducer.iH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue