Allow encoding private=0 in metainfo, which fixes test for not using InfoEx.Bytes when marshalling as a shortcut

This commit is contained in:
Matt Joiner 2016-04-30 11:59:10 +10:00
parent 62c751ff7f
commit 0cd8b4fd3b
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ type Info struct {
Pieces []byte `bencode:"pieces"`
Name string `bencode:"name"`
Length int64 `bencode:"length,omitempty"`
Private bool `bencode:"private,omitempty"`
Private *bool `bencode:"private,omitempty"`
Files []FileInfo `bencode:"files,omitempty"`
}