Skip to content

Commit

Permalink
fix: comment about grease_quic_bit (#2124)
Browse files Browse the repository at this point in the history
## Description

The comment about `grease_quic_bit` was the wrong way round, this fixes
it.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- [x] Tests if relevant.
  • Loading branch information
Frando authored Mar 25, 2024
1 parent a2af124 commit 8407907
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iroh-net/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8407907

Please sign in to comment.