We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33a31cb + d8b1438 commit 0bec972Copy full SHA for 0bec972
BencodeNET/Torrents/Torrent.cs
@@ -307,8 +307,7 @@ protected virtual BDictionary CreateInfoDictionary(Encoding encoding)
307
if (Pieces?.Length > 0)
308
info[TorrentInfoFields.Pieces] = new BString(Pieces, encoding);
309
310
- if (IsPrivate)
311
- info[TorrentInfoFields.Private] = (BNumber)1;
+ info[TorrentInfoFields.Private] = (BNumber)(IsPrivate ? 1 : 0);
312
313
if (FileMode == TorrentFileMode.Single)
314
{
0 commit comments