Skip to content

Commit

Permalink
Delete redundant set_socket_option
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed May 1, 2023
1 parent 46ae4cb commit 904e921
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions quinn-udp/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ fn init(io: SockRef<'_>) -> io::Result<()> {
set_socket_option(&*io, libc::IPPROTO_IPV6, libc::IPV6_DONTFRAG, OPTION_ON)?;
}

if !is_ipv4 {
set_socket_option(&*io, libc::IPPROTO_IPV6, libc::IPV6_RECVTCLASS, OPTION_ON)?;
}

Ok(())
}

Expand Down

0 comments on commit 904e921

Please sign in to comment.