Allow encoding private=0 in metainfo, which fixes test for not using InfoEx.Bytes when marshalling as a shortcut
This commit is contained in:
parent
62c751ff7f
commit
0cd8b4fd3b
|
@ -50,7 +50,7 @@ type Info struct {
|
||||||
Pieces []byte `bencode:"pieces"`
|
Pieces []byte `bencode:"pieces"`
|
||||||
Name string `bencode:"name"`
|
Name string `bencode:"name"`
|
||||||
Length int64 `bencode:"length,omitempty"`
|
Length int64 `bencode:"length,omitempty"`
|
||||||
Private bool `bencode:"private,omitempty"`
|
Private *bool `bencode:"private,omitempty"`
|
||||||
Files []FileInfo `bencode:"files,omitempty"`
|
Files []FileInfo `bencode:"files,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue