expose whether torrents are announcing to trackers, lsd and dht. these can be disabled by the queuing logic
This commit is contained in:
parent
0f241a0816
commit
2715ae475c
|
@ -473,6 +473,14 @@ namespace libtorrent
|
|||
// yet. Torrents are loaded on demand.
|
||||
bool is_loaded;
|
||||
|
||||
// these are set to true if this torrent is allowed to announce to the
|
||||
// respective peer source. Whether they are true or false is determined by
|
||||
// the queue logic/auto manager. Torrents that are not auto managed will
|
||||
// always be allowed to announce to all peer sources.
|
||||
bool announcing_to_trackers;
|
||||
bool announcing_to_lsd;
|
||||
bool announcing_to_dht;
|
||||
|
||||
// the info-hash for this torrent
|
||||
sha1_hash info_hash;
|
||||
};
|
||||
|
|
|
@ -11653,6 +11653,10 @@ namespace libtorrent
|
|||
st->seed_mode = m_seed_mode;
|
||||
st->moving_storage = m_moving_storage;
|
||||
|
||||
st->announcing_to_trackers = m_announce_to_trackers;
|
||||
st->announcing_to_lsd = m_announce_to_lsd;
|
||||
st->announcing_to_dht = m_announce_to_dht;
|
||||
|
||||
st->added_time = m_added_time;
|
||||
st->completed_time = m_completed_time;
|
||||
|
||||
|
|
Loading…
Reference in New Issue