simpletracker icon indicating copy to clipboard operation
simpletracker copied to clipboard

Error in make a peer "leecher"

Open tachyon3000 opened this issue 5 years ago • 1 comments

The announce file put all in status completed=1 on the database, but the lechers or in status completed=0 don't be added, so they can't download nothing, can you fixed it? my server run nginx with php 7.4 and mysqlnd 7.4.3

sorry with my bad english.

tachyon3000 avatar Jan 27 '21 02:01 tachyon3000

You need to review your SELECT statement, ensuring the user ID exists in database.

From there you want to check if seeder and propose a UPDATE or INSERT based on that. From there you do your usual logic and get to the peer data part of it. Once you sorted out the fields.

This announce script does literally everything for us. It's feature packed and will take anyone enough time to achieve that reading the BitTorrent spec/BEPs.

Wiilf avatar Oct 16 '21 22:10 Wiilf