anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.39k stars 615 forks source link

Prioritize the use of local peers #894

Open fredy314 opened 5 months ago

fredy314 commented 5 months ago

If another torrent client is installed on the same server as TorrServer. in which the same torrent is added and the file is already completely downloaded, then I believe it will work much faster if peers on 127.0.0.1 or the local network are taken first to watch the video

anacrolix commented 5 months ago

I don't think LSD is implemented, but it could be possible to preference local IPs. How are you adding those? I suspect having private IPs returned from trackers won't be handled well currently.