check if s is x25519 public key

This commit is contained in:
orignal 2023-05-04 08:20:38 -04:00
parent a9e9e14c42
commit 1bd6390f78

View File

@ -363,7 +363,7 @@ namespace data
if (!s) return; if (!s) return;
} }
if (!i2p::data::CheckStaticKey(address->s, GetIdentHash())) if ((address->s[31] & 0x80) || !i2p::data::CheckStaticKey(address->s, GetIdentHash()))
continue; // skip address continue; // skip address
if (address->transportStyle == eTransportNTCP2) if (address->transportStyle == eTransportNTCP2)