Recognize invalid static key

This commit is contained in:
weko 2023-05-01 19:28:32 +00:00
parent 7c535159bc
commit ec2297ed9d

View file

@ -362,6 +362,10 @@ namespace data
} }
if (!s) return; if (!s) return;
} }
if (!i2p::data::CheckStaticKey(address->s, (*m_RouterIdentity).GetIdentHash()))
continue; // skip address
if (address->transportStyle == eTransportNTCP2) if (address->transportStyle == eTransportNTCP2)
{ {
if (isStaticKey) if (isStaticKey)