t.go | 10 ++++++++++ diff --git a/t.go b/t.go index 45856cc7acbeaa5988074f74435d078a49111a57..6a4607068aa0154987e9169429bd52f27f6188f9 100644 --- a/t.go +++ b/t.go @@ -274,3 +274,13 @@ ret = append(ret, c) } return ret } + +func (t *Torrent) WebseedPeerConns() []*Peer { + t.cl.rLock() + defer t.cl.rUnlock() + ret := make([]*Peer, 0, len(t.conns)) + for _, c := range t.webSeeds { + ret = append(ret, c) + } + return ret +}