From: Matt Joiner Date: Sat, 17 Dec 2022 00:08:46 +0000 (+1100) Subject: Default to announcing as leecher X-Git-Tag: v1.48.0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=61a303cbf7829bdd6796bf7683d1faa21bd0fbcb;p=btrtrc.git Default to announcing as leecher (cherry picked from commit 16da3c0c46a71d6f270600c63acb674226c1c9ae) --- diff --git a/cmd/torrent/announce.go b/cmd/torrent/announce.go index f48dfd2a..31676d9a 100644 --- a/cmd/torrent/announce.go +++ b/cmd/torrent/announce.go @@ -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