From 40e80989b2d8403c136cc30336c97133f72896f2 Mon Sep 17 00:00:00 2001 From: tearfur <46261767+tearfur@users.noreply.github.com> Date: Thu, 22 Jun 2023 00:53:06 +0800 Subject: [PATCH] encode `&key=` as fixed-width 8-digit hex (#5652) --- libtransmission/announcer-http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/announcer-http.cc b/libtransmission/announcer-http.cc index 0ccf8884a..5092db9a7 100644 --- a/libtransmission/announcer-http.cc +++ b/libtransmission/announcer-http.cc @@ -208,7 +208,7 @@ void announce_url_new(tr_urlbuf& url, tr_session const* session, tr_announce_req "&downloaded={downloaded}" "&left={left}" "&numwant={numwant}" - "&key={key}" + "&key={key:08X}" "&compact=1" "&supportcrypto=1", fmt::arg("url", req.announce_url),