mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-04 16:09:59 +02:00
fix(announce): fixed announce issue
This commit is contained in:
@@ -881,7 +881,7 @@ exports.announce = function (req, res) {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function getCurrentPeer(callback) {
|
||||
req.selfpeer.forEach(function (p) {
|
||||
req.selfpeer.every(function (p) {
|
||||
if (p.peer_id === query.peer_id) {
|
||||
req.currentPeer = p;
|
||||
req.currentPeer.isNewCreated = false;
|
||||
|
||||
Reference in New Issue
Block a user