Skip to content

Commit

Permalink
fix(announce): fixed user seeding/leeching issue in NAT network
Browse files Browse the repository at this point in the history
  • Loading branch information
taobataoma committed Jun 27, 2018
1 parent 1a5d3e4 commit b5a41d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ exports.announce = function (req, res) {
function getPeers(count, peers) {
var ps = [];

if (!req.seeder && event(query.event) !== EVENT_STOPPED && event(query.event) !== EVENT_COMPLETED) {
if (event(query.event) !== EVENT_STOPPED) {
mtDebug.debugGreen('---------------GET PEERS LIST----------------', 'ANNOUNCE', true, req.passkeyuser);
mtDebug.debugRed('want.count = ' + count, 'ANNOUNCE', true, req.passkeyuser);
mtDebug.debugRed('peers.length = ' + peers.length, 'ANNOUNCE', true, req.passkeyuser);
Expand Down

0 comments on commit b5a41d8

Please sign in to comment.