mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
announce use passkey
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ if (strlen($CURUSER['passkey']) != 32) {
|
|||||||
}
|
}
|
||||||
$trackerReportAuthKey = $torrentRep->getTrackerReportAuthKey($id, $CURUSER['id'], true);
|
$trackerReportAuthKey = $torrentRep->getTrackerReportAuthKey($id, $CURUSER['id'], true);
|
||||||
$dict = \Rhilip\Bencode\Bencode::load($fn);
|
$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']));
|
do_log(sprintf("[ANNOUNCE_URL], user: %s, torrent: %s, url: %s", $CURUSER['id'] ?? '', $id, $dict['announce']));
|
||||||
/**
|
/**
|
||||||
* does not support multi-tracker
|
* does not support multi-tracker
|
||||||
|
|||||||
Reference in New Issue
Block a user