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
|
|
@ -28,9 +28,9 @@ pub struct Argument {
|
|||
#[arg(long)]
|
||||
pub torrent_tracker: Vec<String>,
|
||||
|
||||
/// Disable DHT resolver (useful with `torrent_tracker`)
|
||||
/// Enable DHT resolver
|
||||
#[arg(long, default_value_t = false)]
|
||||
pub disable_dht: bool,
|
||||
pub enable_dht: bool,
|
||||
|
||||
/// Enable UPnP
|
||||
#[arg(long, default_value_t = false)]
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
let session = librqbit::Session::new_with_opts(
|
||||
std::path::PathBuf::new(),
|
||||
SessionOptions {
|
||||
disable_dht: argument.disable_dht,
|
||||
disable_dht: !argument.enable_dht,
|
||||
disable_upload: !argument.enable_upload,
|
||||
enable_upnp_port_forwarding: argument.enable_upnp_port_forwarding,
|
||||
socks_proxy_url: argument.socks_proxy_url.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue