Forward leechers and seeders announce handler results

This commit is contained in:
Matt Joiner 2023-01-05 00:05:34 +11:00
parent 2dfb57f3f7
commit 1eb923c947
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
1 changed files with 2 additions and 0 deletions

View File

@ -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 {