Forward leechers and seeders announce handler results
This commit is contained in:
parent
2dfb57f3f7
commit
1eb923c947
|
@ -101,6 +101,8 @@ func (me Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
var resp httpTracker.HttpResponse
|
||||
resp.Incomplete = res.Leechers.Value
|
||||
resp.Complete = res.Seeders.Value
|
||||
resp.Interval = res.Interval.UnwrapOr(5 * 60)
|
||||
resp.Peers.Compact = true
|
||||
for _, peer := range res.Peers {
|
||||
|
|
Loading…
Reference in New Issue