fix to recent 'store banned peers' check-in

This commit is contained in:
Arvid Norberg 2007-10-04 17:29:11 +00:00
parent 7ddc7c2258
commit b75a1325cb
1 changed files with 8 additions and 0 deletions

View File

@ -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
{ {