Cherry pick peers using Rasterbar libtorrent in Python

前端 未结 1 946
天涯浪人
天涯浪人 2021-01-25 14:49

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 wi

1条回答
  •  -上瘾入骨i
    2021-01-25 15:29

    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.

    0 讨论(0)
提交回复
热议问题