diff options
| author | tv <tv@krebsco.de> | 2026-10-24 03:19:28 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 03:19:28 +0200 |
| commit | a1460b0a2861d5bb34ba25d409b234468f269e4e (patch) | |
| tree | fb447e712aa587b4136c12f4b918cd9c6cf160f0 /src/main.rs | |
| parent | 84a307a09eb3ba95920b028a49d0ec57bf316cdc (diff) | |
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.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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(), }; |
