From: Matt Joiner Date: Tue, 1 Mar 2022 23:51:19 +0000 (+1100) Subject: cmd/torrent announce: Use NumWant -1 X-Git-Tag: v1.42.0~25 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a450bbe6b2cb5a908a3342ee10e6f74f6582fa8e;p=btrtrc.git cmd/torrent announce: Use NumWant -1 tracker.opentrackr.org will actually send no peers back unless you ask for them. --- diff --git a/cmd/torrent/announce.go b/cmd/torrent/announce.go index 5ba51be4..277f3bef 100644 --- a/cmd/torrent/announce.go +++ b/cmd/torrent/announce.go @@ -20,6 +20,7 @@ func announceErr(flags AnnounceCmd) error { Request: tracker.AnnounceRequest{ InfoHash: flags.InfoHash, Port: uint16(torrent.NewDefaultClientConfig().ListenPort), + NumWant: -1, }, }.Do() if err != nil {