]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Default to announcing as leecher
authorMatt Joiner <anacrolix@gmail.com>
Sat, 17 Dec 2022 00:08:46 +0000 (11:08 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 17 Dec 2022 00:08:46 +0000 (11:08 +1100)
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