Browse Source

NetDB: ignore LeaseSet store request if not floodfill

Signed-off-by: r4sas <r4sas@i2pmail.org>
pull/1928/merge
R4SAS 1 year ago
parent
commit
09f233dbfb
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 7
      libi2pd/NetDb.cpp

7
libi2pd/NetDb.cpp

@ -840,7 +840,12 @@ namespace data @@ -840,7 +840,12 @@ namespace data
LogPrint (eLogError, "NetDb: Database store message is too long ", len);
return;
}
if (!m->from) // unsolicited LS must be received directly
if (!context.IsFloodfill ())
{
LogPrint (eLogInfo, "NetDb: Not Floodfill, LeaseSet store request ignored for ", ident.ToBase32());
return;
}
else if (!m->from) // unsolicited LS must be received directly
{
if (storeType == NETDB_STORE_TYPE_LEASESET) // 1
{

Loading…
Cancel
Save