rename disable_dht to enable_dht (disabled by default)

This commit is contained in:
yggverse 2025-06-07 16:19:54 +03:00
parent 7f5a019ef0
commit 2572f0d32e
3 changed files with 5 additions and 5 deletions

View file

@ -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(),