mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
router with expired introducer is still valid
This commit is contained in:
parent
f4902e6642
commit
a37cf058cd
2 changed files with 9 additions and 7 deletions
|
@ -343,7 +343,8 @@ namespace data
|
|||
int numValid = 0;
|
||||
for (auto& it: address->ssu->introducers)
|
||||
{
|
||||
if ((!it.iExp || ts <= it.iExp) && it.iPort > 0 &&
|
||||
if (!it.iExp) it.iExp = m_Timestamp/1000 + NETDB_INTRODUCEE_EXPIRATION_TIMEOUT;
|
||||
if (ts <= it.iExp && it.iPort > 0 &&
|
||||
((it.iHost.is_v4 () && address->IsV4 ()) || (it.iHost.is_v6 () && address->IsV6 ())))
|
||||
numValid++;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue