forked from premiere/premiere-libtorrent
fix to recent 'store banned peers' check-in
This commit is contained in:
parent
7ddc7c2258
commit
b75a1325cb
|
@ -391,6 +391,14 @@ namespace detail
|
||||||
processing->torrent_ptr->get_policy().peer_from_tracker(*i, id
|
processing->torrent_ptr->get_policy().peer_from_tracker(*i, id
|
||||||
, peer_info::resume_data, 0);
|
, peer_info::resume_data, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (std::vector<tcp::endpoint>::const_iterator i = processing->banned_peers.begin();
|
||||||
|
i != processing->banned_peers.end(); ++i)
|
||||||
|
{
|
||||||
|
policy::peer* p = processing->torrent_ptr->get_policy().peer_from_tracker(*i, id
|
||||||
|
, peer_info::resume_data, 0);
|
||||||
|
if (p) p->banned = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue