From 7d5d65f4555e4a70218f474e6175b73d5bae7c1d Mon Sep 17 00:00:00 2001 From: Ignacio Duart Date: Tue, 11 Jun 2024 22:28:01 +0200 Subject: [PATCH] Assigned location houldn't be random --- crates/core/src/operations/connect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/operations/connect.rs b/crates/core/src/operations/connect.rs index 404a98c26..2353cd361 100644 --- a/crates/core/src/operations/connect.rs +++ b/crates/core/src/operations/connect.rs @@ -241,7 +241,7 @@ impl Operation for ConnectOp { .clone() .expect("should be already set at the p2p bridge level"); let this_peer = op_manager.ring.own_location(); - let assigned_location = Location::random(); + let assigned_location = Location::from_address(&joiner.addr); let new_peer_loc = PeerKeyLocation { location: Some(assigned_location),