Fix initial peers for HTTP client
This commit is contained in:
parent
c2b2e8e8e7
commit
cc002a4ed3
1 changed files with 2 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ use serde::Deserialize;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
api::ApiAddTorrentResponse,
|
api::ApiAddTorrentResponse,
|
||||||
http_api::TorrentAddQueryParams,
|
http_api::{InitialPeers, TorrentAddQueryParams},
|
||||||
session::{AddTorrent, AddTorrentOptions},
|
session::{AddTorrent, AddTorrentOptions},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -99,6 +99,7 @@ impl HttpApiClient {
|
||||||
output_folder: opts.output_folder,
|
output_folder: opts.output_folder,
|
||||||
sub_folder: opts.sub_folder,
|
sub_folder: opts.sub_folder,
|
||||||
list_only: Some(opts.list_only),
|
list_only: Some(opts.list_only),
|
||||||
|
initial_peers: opts.initial_peers.map(InitialPeers),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let qs = serde_urlencoded::to_string(¶ms).unwrap();
|
let qs = serde_urlencoded::to_string(¶ms).unwrap();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue