valuetype: compare certificate using longId

This commit is contained in:
Adrien Béraud committed 2025-05-19 23:57:09 -04:00
1 parent 13af7a6002
commit 8d030f75f6
1 file changed
+1 -1
+1 -1
View File
@@ -387,7 +387,7 @@ const ValueType CERTIFICATE_TYPE = {
},
[](InfoHash, const Sp<Value>& o, Sp<Value>& n, const InfoHash&, const SockAddr&) {
try {
return crypto::Certificate(o->data).getPublicKey().getId() == crypto::Certificate(n->data).getPublicKey().getId();
return crypto::Certificate(o->data).getPublicKey().getLongId() == crypto::Certificate(n->data).getPublicKey().getLongId();
} catch (const std::exception& e) {}
return false;
}