Browse Source

check if s is x25519 public key

pull/1925/head
orignal 2 years ago
parent
commit
1bd6390f78
  1. 2
      libi2pd/RouterInfo.cpp

2
libi2pd/RouterInfo.cpp

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

Loading…
Cancel
Save