Support magnet links that contain trackers with DHT disabled
Closed this issue · 1 comments
av-gal commented
Magnet links may contain (a list of) trackers. Most magnet links don't contain any, relying solely on the DHT to find peers.
The current process for adding magnet URLs always bails if DHT is disabled, because it assumes that it will not be able to retrieve the torrent's metainfo without the DHT feeding it peers. Rqbit currently doesn't contact trackers until we've checked the torrent and it knows how many bytes left to report to the tracker.
Querying a tracker only uses the infohash, and would provide peers which we could try to download the metadata from. It's safe to report we haven't uploaded or downloaded anything yet, because this magnet still hasn't been added.