Disable trackers propagate
This commit is contained in:
parent
a881c1cbf9
commit
1001a44a24
1 changed files with 10 additions and 2 deletions
|
|
@ -828,7 +828,11 @@ impl Session {
|
||||||
|
|
||||||
let peer_rx = self.make_peer_rx(
|
let peer_rx = self.make_peer_rx(
|
||||||
info_hash,
|
info_hash,
|
||||||
magnet.trackers.clone(),
|
if opts.disable_trackers {
|
||||||
|
Default::default()
|
||||||
|
} else {
|
||||||
|
magnet.trackers.clone()
|
||||||
|
},
|
||||||
announce_port,
|
announce_port,
|
||||||
opts.force_tracker_interval,
|
opts.force_tracker_interval,
|
||||||
)?;
|
)?;
|
||||||
|
|
@ -897,7 +901,11 @@ impl Session {
|
||||||
} else {
|
} else {
|
||||||
self.make_peer_rx(
|
self.make_peer_rx(
|
||||||
torrent.info_hash,
|
torrent.info_hash,
|
||||||
trackers.clone(),
|
if opts.disable_trackers {
|
||||||
|
Default::default()
|
||||||
|
} else {
|
||||||
|
trackers.clone()
|
||||||
|
},
|
||||||
announce_port,
|
announce_port,
|
||||||
opts.force_tracker_interval,
|
opts.force_tracker_interval,
|
||||||
)?
|
)?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue