From 39acd85e42b031ae735b39bf342ab5e681c00f41 Mon Sep 17 00:00:00 2001 From: lgb <353856593@qq.com> Date: Mon, 29 May 2023 20:16:15 +0800 Subject: [PATCH] announce use passkey --- public/download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/download.php b/public/download.php index 6690bdce..28d6e80e 100644 --- a/public/download.php +++ b/public/download.php @@ -141,7 +141,7 @@ if (strlen($CURUSER['passkey']) != 32) { } $trackerReportAuthKey = $torrentRep->getTrackerReportAuthKey($id, $CURUSER['id'], true); $dict = \Rhilip\Bencode\Bencode::load($fn); -$dict['announce'] = $ssl_torrent . $base_announce_url . "?authkey=$trackerReportAuthKey"; +$dict['announce'] = $ssl_torrent . $base_announce_url . "?passkey=" . $CURUSER['passkey']; do_log(sprintf("[ANNOUNCE_URL], user: %s, torrent: %s, url: %s", $CURUSER['id'] ?? '', $id, $dict['announce'])); /** * does not support multi-tracker