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 | 812f0c8524b33972a9749aff5000a43b20801ce9 (patch) | |
| tree | 134f261d60b101e4b896f6c058643188d154b1a1 /src/main.rs | |
| parent | 0f66f161b170cf9459e19d9a9b16ec300665ff9d (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(), }; |
