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
int numValid = 0; int numValid = 0;
for (auto& it: address->ssu->introducers) for (auto& it: address->ssu->introducers)
{ {
if (it.iTag && ts < it.iExp) if (it.iTag && ts < it.iExp && !it.iH.IsZero ())
numValid++; numValid++;
else else
it.iTag = 0; it.iTag = 0;

2
libi2pd/RouterInfo.h

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

Loading…
Cancel
Save