From 8407907c38cba813f9e9cdcf6d3a6081886896e2 Mon Sep 17 00:00:00 2001 From: Franz Heinzmann Date: Mon, 25 Mar 2024 14:52:42 +0100 Subject: [PATCH] fix: comment about grease_quic_bit (#2124) ## Description The comment about `grease_quic_bit` was the wrong way round, this fixes it. ## Notes & open questions ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. --- iroh-net/src/magicsock.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iroh-net/src/magicsock.rs b/iroh-net/src/magicsock.rs index b6302b44db..05a250eac7 100644 --- a/iroh-net/src/magicsock.rs +++ b/iroh-net/src/magicsock.rs @@ -538,7 +538,8 @@ impl Inner { } else { // overwrite the first byte of the packets with zero. // this makes quinn reliably and quickly ignore the packet as long as - // [`quinn::EndpointConfig::grease_quic_bit`] is set to `true`. + // [`quinn::EndpointConfig::grease_quic_bit`] is set to `false` + // (which we always do in MagicEndpoint::bind). buf[start] = 0u8; } start = end;