aboutsummaryrefslogtreecommitdiff
path: root/meta/torrent.go
diff options
context:
space:
mode:
Diffstat (limited to 'meta/torrent.go')
-rw-r--r--meta/torrent.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/torrent.go b/meta/torrent.go
index 80c987b..41323a8 100644
--- a/meta/torrent.go
+++ b/meta/torrent.go
@@ -21,7 +21,6 @@ type Torrent struct {
Encoding string `bencode:"encoding,optional"`
HTTPSeeds []string `bencode:"httpseeds,optional"` // BEP-0017
Info Info `bencode:"info"`
- InfoHash []byte `bencode:"-"`
//Nodes Nodes `bencode:"nodes"` // BEP-0005
//URLList []string `bencode:"url-list,optional"`
}
@@ -31,7 +30,7 @@ func (t Torrent) String() string {
s += fmt.Sprintf("comment: %s\n", t.Comment)
s += fmt.Sprintf("date: %s\n", t.CreationDate)
s += fmt.Sprintf("%v", t.Info)
- s += fmt.Sprintf("info hash: % x", t.InfoHash)
+ s += fmt.Sprintf("info hash: % x", t.Info.Hash())
return s
}