]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Default to announcing as leecher v1.48.0
authorMatt Joiner <anacrolix@gmail.com>
Sat, 17 Dec 2022 00:08:46 +0000 (11:08 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 25 Dec 2022 08:57:16 +0000 (19:57 +1100)
(cherry picked from commit 16da3c0c46a71d6f270600c63acb674226c1c9ae)

cmd/torrent/announce.go

index f48dfd2acfbd22b85461fd94d987d0f043eb072a..31676d9a10f77e81f4c4e81a8642e2c017776540 100644 (file)
@@ -23,6 +23,7 @@ func announceErr(flags AnnounceCmd) error {
                Port:     uint16(torrent.NewDefaultClientConfig().ListenPort),
                NumWant:  -1,
                Event:    flags.Event,
+               Left:     -1,
        }
        if flags.Port != nil {
                req.Port = *flags.Port