From a1460b0a2861d5bb34ba25d409b234468f269e4e Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 24 Oct 2026 03:19:28 +0200 Subject: use nonce in handshake To prevent stale hello replies to cause joins and thus stale sessions, each run gets a random ID, which used as nonce in the handshake. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d5043a8..6082e67 100644 --- a/src/main.rs +++ b/src/main.rs @@ -185,6 +185,7 @@ async fn main() -> Result<()> { timing: Timing::from_keepalive(Duration::from_secs(args.keepalive_secs)), remake: Arc::new(remake::RemakeState::default()), swarm_key, + run_id: uuid::Uuid::new_v4().into_bytes(), stale: Default::default(), catch_up_source: Default::default(), }; -- cgit v1.3.1