fix(client): use correct socket option for IPv4 TOS reception on Linux
This commit is contained in:
1 parent
26fbe86e90
commit
44ffb9557a
1 file changed
+1
-1
@@ -15,7 +15,7 @@ pub(crate) fn configure_receive_metadata(socket: &UdpSocket, remote: SocketAddr)
|
||||
enable_kernel_rx_timestamps(socket)?;
|
||||
let socket = socket2::SockRef::from(socket);
|
||||
if remote.is_ipv4() {
|
||||
socket.set_recv_tos(true)
|
||||
socket.set_recv_tos_v4(true)
|
||||
} else {
|
||||
socket.set_recv_tclass_v6(true)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user