Pass seeders and leechers back in UDP announce

This commit is contained in:
Matt Joiner 2022-12-17 11:08:35 +11:00
parent 3371522119
commit 6731a31839
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ func (me *Server) handleAnnounce(
}
err = udp.Write(&buf, udp.AnnounceResponseHeader{
Interval: res.Interval.UnwrapOr(5 * 60),
Seeders: res.Seeders.Value,
Leechers: res.Leechers.Value,
})
if err != nil {
return err