Skip to content

Commit

Permalink
Fix initial peers for HTTP client
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Nov 7, 2024
1 parent c2b2e8e commit cc002a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/librqbit/src/http_api_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::Deserialize;

use crate::{
api::ApiAddTorrentResponse,
http_api::TorrentAddQueryParams,
http_api::{InitialPeers, TorrentAddQueryParams},
session::{AddTorrent, AddTorrentOptions},
};

Expand Down Expand Up @@ -99,6 +99,7 @@ impl HttpApiClient {
output_folder: opts.output_folder,
sub_folder: opts.sub_folder,
list_only: Some(opts.list_only),
initial_peers: opts.initial_peers.map(InitialPeers),
..Default::default()
};
let qs = serde_urlencoded::to_string(&params).unwrap();
Expand Down

0 comments on commit cc002a4

Please sign in to comment.