From: Matt Joiner Date: Thu, 1 Oct 2020 00:45:29 +0000 (+1000) Subject: Pass key param in http announces X-Git-Tag: v1.17.0~5 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e1d59f791e1257a5c6d98ff727fddafeaaeac5c4;p=btrtrc.git Pass key param in http announces --- diff --git a/tracker/http.go b/tracker/http.go index 328c0832..caf0cff6 100644 --- a/tracker/http.go +++ b/tracker/http.go @@ -70,6 +70,7 @@ func (me *Peers) UnmarshalBencode(b []byte) (err error) { func setAnnounceParams(_url *url.URL, ar *AnnounceRequest, opts Announce) { q := _url.Query() + q.Set("key", strconv.FormatInt(int64(ar.Key), 10)) q.Set("info_hash", string(ar.InfoHash[:])) q.Set("peer_id", string(ar.PeerId[:])) // AFAICT, port is mandatory, and there's no implied port key.