mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-13 18:19:47 -04:00
use onion part for local port
This commit is contained in:
parent
f81a4cf629
commit
e245d0dc2d
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ impl Transport for TorConfig {
|
|||
let onion_bytes = key.public().get_onion_address().get_raw_bytes();
|
||||
let onion_port = onion.port();
|
||||
|
||||
let localhost_tcp_random_port_addr = "/ip4/127.0.0.1/tcp/0"
|
||||
let localhost_tcp_random_port_addr = format!("/ip4/127.0.0.1/tcp/{}", onion_port).as_str()
|
||||
.parse()
|
||||
.expect("always a valid multiaddr");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue