mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
rename disable_dht to enable_dht (disabled by default)
This commit is contained in:
parent
7f5a019ef0
commit
2572f0d32e
3 changed files with 5 additions and 5 deletions
|
|
@ -65,8 +65,8 @@ aquatic-crawler --infohash-source /path/to/info-hash-ipv4.json\
|
||||||
--torrent-tracker <TORRENT_TRACKER>
|
--torrent-tracker <TORRENT_TRACKER>
|
||||||
Define custom tracker(s) to preload the `.torrent` files info
|
Define custom tracker(s) to preload the `.torrent` files info
|
||||||
|
|
||||||
--disable-dht
|
--enable_dht-dht
|
||||||
Disable DHT resolver (useful with `torrent_tracker`)
|
Enable DHT
|
||||||
|
|
||||||
--enable-upnp-port-forwarding
|
--enable-upnp-port-forwarding
|
||||||
Enable UPnP
|
Enable UPnP
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,9 @@ pub struct Argument {
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
pub torrent_tracker: Vec<String>,
|
pub torrent_tracker: Vec<String>,
|
||||||
|
|
||||||
/// Disable DHT resolver (useful with `torrent_tracker`)
|
/// Enable DHT resolver
|
||||||
#[arg(long, default_value_t = false)]
|
#[arg(long, default_value_t = false)]
|
||||||
pub disable_dht: bool,
|
pub enable_dht: bool,
|
||||||
|
|
||||||
/// Enable UPnP
|
/// Enable UPnP
|
||||||
#[arg(long, default_value_t = false)]
|
#[arg(long, default_value_t = false)]
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ async fn main() -> anyhow::Result<()> {
|
||||||
let session = librqbit::Session::new_with_opts(
|
let session = librqbit::Session::new_with_opts(
|
||||||
std::path::PathBuf::new(),
|
std::path::PathBuf::new(),
|
||||||
SessionOptions {
|
SessionOptions {
|
||||||
disable_dht: argument.disable_dht,
|
disable_dht: !argument.enable_dht,
|
||||||
disable_upload: !argument.enable_upload,
|
disable_upload: !argument.enable_upload,
|
||||||
enable_upnp_port_forwarding: argument.enable_upnp_port_forwarding,
|
enable_upnp_port_forwarding: argument.enable_upnp_port_forwarding,
|
||||||
socks_proxy_url: argument.socks_proxy_url.clone(),
|
socks_proxy_url: argument.socks_proxy_url.clone(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue