mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-22 05:11:35 -05:00
Pass server_address properly to RpcServer
This commit is contained in:
parent
186b242db5
commit
96cc194b46
@ -331,10 +331,8 @@ impl Request {
|
||||
}))
|
||||
}
|
||||
Method::StartDaemon => {
|
||||
let server_address = match self.params.server_address {
|
||||
Some(address) => address,
|
||||
None => "127.0.0.1:3456".parse()?,
|
||||
};
|
||||
// Default to 127.0.0.1:1234
|
||||
let server_address = self.params.server_address.unwrap_or("127.0.0.1:1234".parse().unwrap());
|
||||
|
||||
let (_, server_handle) =
|
||||
rpc::run_server(server_address, Arc::clone(&context)).await?;
|
||||
|
@ -136,7 +136,10 @@ where
|
||||
monero,
|
||||
tor,
|
||||
} => {
|
||||
let request = Request::new(rx.subscribe(), Method::StartDaemon, Params::default());
|
||||
let request = Request::new(rx.subscribe(), Method::StartDaemon, Params {
|
||||
server_address,
|
||||
..Default::default()
|
||||
});
|
||||
|
||||
let context = Context::build(
|
||||
Some(bitcoin),
|
||||
|
Loading…
Reference in New Issue
Block a user