mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-07-30 01:09:21 +00:00
send ratchet session response for unidirectional traffic for I2CP
This commit is contained in:
@@ -437,7 +437,9 @@ namespace client
|
||||
{
|
||||
uint8_t pub[32];
|
||||
leaseSet->Encrypt (nullptr, pub);
|
||||
if (memcmp (from->GetRemoteStaticKey (), pub, 32))
|
||||
if (!memcmp (from->GetRemoteStaticKey (), pub, 32))
|
||||
from->SetDestination (leaseSet->GetIdentHash ());
|
||||
else
|
||||
{
|
||||
LogPrint (eLogError, "Destination: Remote LeaseSet static key mismatch");
|
||||
leaseSet = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user