announce use passkey

This commit is contained in:
lgb
2023-05-29 20:16:15 +08:00
parent 0bd5c1a688
commit 39acd85e42

View File

@@ -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