Home > Back-end >  Odd "peers" field from torrent announce
Odd "peers" field from torrent announce

Time:10-23

As a fun side-project, I'm trying to write a Bittorrent client in Golang. My test tracker right now is the Ubuntu 20.04.5 iso file found here. I'm able to get to the point where I'm making a request to the tracker that seems to be registered correctly, but I'm getting the following bencoded string returned to me:

d8:completei193e10:incompletei4e8:intervali1800e5:peers6:};e

My big problem is that I can't figure out how to interpret the peers field returned here in order to begin making requests to peers. Is there something I'm missing? Thanks for any help you can provide!

CodePudding user response:

That's a compact peers list (BEP 23, and BEP 07 for IPv6). That should be an opt-in extension signalled through an additional request parameter, but some trackers send that response type unconditionally.

  • Related