mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 06:02:31 +00:00
* New Tracker API.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1002 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -88,11 +88,11 @@ Download::enable_udp_trackers(bool state) {
|
||||
torrent::TrackerList tl = m_download.tracker_list();
|
||||
|
||||
for (int i = 0, last = tl.size(); i < last; ++i)
|
||||
if (tl.get(i).tracker_type() == torrent::Tracker::TRACKER_UDP)
|
||||
if (tl.get(i)->type() == torrent::Tracker::TRACKER_UDP)
|
||||
if (state)
|
||||
tl.get(i).enable();
|
||||
tl.get(i)->enable();
|
||||
else
|
||||
tl.get(i).disable();
|
||||
tl.get(i)->disable();
|
||||
}
|
||||
|
||||
uint32_t
|
||||
|
||||
Reference in New Issue
Block a user