1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 07:03:44 +00:00

fix: Take into account only the private that is inside info. (#7313)

This commit is contained in:
Bark 2024-12-23 22:08:05 +02:00 committed by GitHub
parent 713a96ffa1
commit 1a38830ada
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,7 +219,7 @@ struct MetainfoHandler final : public transmission::benc::BasicHandler<MaxBencDe
{
tm_.date_created_ = value;
}
else if (pathIs(PrivateKey) || pathIs(InfoKey, PrivateKey))
else if (pathIs(InfoKey, PrivateKey))
{
tm_.is_private_ = value != 0;
}