download.go | 1 + t.go | 5 +++++ diff --git a/download.go b/download.go index 6e60af07a53c9e301c105ba039398f2d048f6771..171da56c7202fc019f1f6bbced5b501bf07d9cba 100644 --- a/download.go +++ b/download.go @@ -23,4 +23,5 @@ AddPeers(pp []Peer) error DownloadAll() Trackers() [][]tracker.Client Files() (ret []File) + Peers() map[peersKey]Peer } \ No newline at end of file diff --git a/t.go b/t.go index 05917e29f4bd6bc27c7e2b82e2bca9e2488b7c61..9d2e7d1bc6777664cd096a4a009c52297e77885d 100644 --- a/t.go +++ b/t.go @@ -101,4 +101,9 @@ // Trackers returns torrent's trackers func (t Torrent) Trackers() [][]tracker.Client { return t.torrent.Trackers +} + +// Peers returns torrent's peers +func (t Torrent) Peers() map[peersKey]Peer { + return t.torrent.Peers } \ No newline at end of file