Skip to content

Commit

Permalink
exclude SSU1 introducers
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Aug 8, 2023
1 parent 8447822 commit 7bcc905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libi2pd/RouterInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion libi2pd/RouterInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7bcc905

Please sign in to comment.