prioritize trackers after adding the initial tracker
This commit is contained in:
@@ -514,9 +514,6 @@ namespace libtorrent
|
|||||||
|
|
||||||
if (p.resume_data) m_resume_data.swap(*p.resume_data);
|
if (p.resume_data) m_resume_data.swap(*p.resume_data);
|
||||||
|
|
||||||
if (settings().prefer_udp_trackers)
|
|
||||||
prioritize_udp_trackers();
|
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_ENCRYPTION
|
#ifndef TORRENT_DISABLE_ENCRYPTION
|
||||||
hasher h;
|
hasher h;
|
||||||
h.update("req2", 4);
|
h.update("req2", 4);
|
||||||
@@ -538,6 +535,9 @@ namespace libtorrent
|
|||||||
m_trackers.back().source = announce_entry::source_magnet_link;
|
m_trackers.back().source = announce_entry::source_magnet_link;
|
||||||
m_torrent_file->add_tracker(p.tracker_url);
|
m_torrent_file->add_tracker(p.tracker_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (settings().prefer_udp_trackers)
|
||||||
|
prioritize_udp_trackers();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
|
Reference in New Issue
Block a user