From e1d59f791e1257a5c6d98ff727fddafeaaeac5c4 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 1 Oct 2020 10:45:29 +1000 Subject: [PATCH] Pass key param in http announces --- tracker/http.go | 1 + 1 file changed, 1 insertion(+) 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. -- 2.48.1