BitTorrent protocol doesn't seem to be true

I am having problems with the implementation of the tracker - I am using PHPTracker as the base library, but it does not really matter right now.

As written in the BitTorrent Specification , the client must send the info_hash GET parameter among some others. Instead, I get the following options:

 { "peer_id":"-AZ4702-WyiDalpWGJno", "supportcrypto":"1", "port":"19952", "azudp":"19952", "uploaded":"0", "downloaded":"0", "left":"22", "corrupt":"0", "event":"started", "numwant":"75", "no_peer_id":"1", "compact":"1", "key":"fdn0htAH", "azver":"3" } 

The same parameters came from both Vuze and uTorrent. I am rather confused here, as some parameters are in the specification, while others are not. What's going on here?

+4
source share
1 answer

This request is meaningless, the info_hash key is needed. At the suggestion of @Arvid, your library is not processing the request correctly or parsing it in some way that does not meet your requirements.

+1
source

Source: https://habr.com/ru/post/1403214/


All Articles