parent
f960ec1b65
commit
163a63f9a7
|
@ -548,7 +548,13 @@ func (t *Torrent) newMetaInfo() metainfo.MetaInfo {
|
|||
Comment: "dynamic metainfo from client",
|
||||
CreatedBy: "go.torrent",
|
||||
AnnounceList: t.metainfo.UpvertedAnnounceList(),
|
||||
InfoBytes: t.metadataBytes,
|
||||
InfoBytes: func() []byte {
|
||||
if t.haveInfo() {
|
||||
return t.metadataBytes
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue