mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-22 13:21:16 -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 => {
|
Method::StartDaemon => {
|
||||||
let server_address = match self.params.server_address {
|
// Default to 127.0.0.1:1234
|
||||||
Some(address) => address,
|
let server_address = self.params.server_address.unwrap_or("127.0.0.1:1234".parse().unwrap());
|
||||||
None => "127.0.0.1:3456".parse()?,
|
|
||||||
};
|
|
||||||
|
|
||||||
let (_, server_handle) =
|
let (_, server_handle) =
|
||||||
rpc::run_server(server_address, Arc::clone(&context)).await?;
|
rpc::run_server(server_address, Arc::clone(&context)).await?;
|
||||||
|
@ -136,7 +136,10 @@ where
|
|||||||
monero,
|
monero,
|
||||||
tor,
|
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(
|
let context = Context::build(
|
||||||
Some(bitcoin),
|
Some(bitcoin),
|
||||||
|
Loading…
Reference in New Issue
Block a user