Skip to content

Commit

Permalink
Fix openbsd: no support for DONTFRAG on IPv4
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Root authored and Ralith committed Jun 2, 2024
1 parent 72ef0c0 commit 2ad6dbb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions quinn-udp/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,7 @@ impl UdpSocketState {
)?;
}
}
#[cfg(any(
target_os = "freebsd",
target_os = "openbsd",
target_os = "macos",
target_os = "ios"
))]
#[cfg(any(target_os = "freebsd", target_os = "macos", target_os = "ios"))]
{
if is_ipv4 {
// Set `may_fragment` to `true` if this option is not supported on the platform.
Expand Down

0 comments on commit 2ad6dbb

Please sign in to comment.