Browse Source

exclude SSU1 introducers

pull/1960/head
orignal 1 year ago
parent
commit
7bcc905f05
  1. 2
      libi2pd/RouterInfo.cpp
  2. 2
      libi2pd/RouterInfo.h

2
libi2pd/RouterInfo.cpp

@ -579,7 +579,7 @@ namespace data @@ -579,7 +579,7 @@ namespace data
int numValid = 0;
for (auto& it: address->ssu->introducers)
{
if (it.iTag && ts < it.iExp)
if (it.iTag && ts < it.iExp && !it.iH.IsZero ())
numValid++;
else
it.iTag = 0;

2
libi2pd/RouterInfo.h

@ -125,7 +125,7 @@ namespace data @@ -125,7 +125,7 @@ namespace data
struct Introducer
{
Introducer (): iTag (0), iExp (0) {};
Introducer (): iTag (0), iExp (0) { iH.Fill(0); };
IdentHash iH;
uint32_t iTag;
uint32_t iExp;

Loading…
Cancel
Save