mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-21 04:28:13 -04:00
same port to rule that out
This commit is contained in:
parent
dede7b38f9
commit
6fd36dbeb5
2 changed files with 3 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_bytes = key.public().get_onion_address().get_raw_bytes();
|
||||||
let onion_port = onion.port();
|
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()
|
.parse()
|
||||||
.expect("always a valid multiaddr");
|
.expect("always a valid multiaddr");
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,8 @@ impl AuthenticatedConnectionExt for AuthenticatedConn<tokio::net::TcpStream, Asy
|
||||||
onion_port: u16,
|
onion_port: u16,
|
||||||
local_port: u16,
|
local_port: u16,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
println!("Adding ephemeral service, onion port {}, local port {}", onion_port, local_port);
|
||||||
|
|
||||||
self.add_onion_v3(
|
self.add_onion_v3(
|
||||||
&key,
|
&key,
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue