Cherry pick peers using Rasterbar libtorrent in Py

2019-02-28 08:40发布

Does anyone know if it's possible to cherry pick peers to connect with using libtorrent? That is, after the tracker returns a list of peer IPs and ports, only a selected few will be connected with based on some defined criteria.

Thanks

1条回答
贼婆χ
2楼-- · 2019-02-28 08:57

you can remove peers from the set using set_ip_filter(). you can add peers to the set by using connect_peer(). That's about all the control you have. The priority of which peers from the set to connect to in which order is hard coded.

查看更多
登录 后发表回答