From b1009a54e32eefc15518c0b027de8e3aeddceea6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Fri, 27 Jan 2023 14:06:37 -0500
Subject: [PATCH] crypto: compare public keys with longId

---
 include/opendht/crypto.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/opendht/crypto.h b/include/opendht/crypto.h
index 642eb461..f26a65f2 100644
--- a/include/opendht/crypto.h
+++ b/include/opendht/crypto.h
@@ -93,7 +93,7 @@ struct OPENDHT_PUBLIC PublicKey
     ~PublicKey();
     explicit operator bool() const { return pk; }
     bool operator ==(const PublicKey& o) const {
-        return pk == o.pk || getId() == o.getId();
+        return pk == o.pk || getLongId() == o.getLongId();
     }
     bool operator !=(const PublicKey& o) const {
         return !(*this == o);
-- 
GitLab