Fix: Wrong function call in std::net under unix target
This commit is contained in:
@@ -474,7 +474,7 @@ fn udp_trace_hop_v6(
|
||||
let socket =
|
||||
std::net::UdpSocket::bind("[::]:0").map_err(|err| ProbeError::Io(err.to_string()))?;
|
||||
socket
|
||||
.set_multicast_hops_v6(u32::from(ttl))
|
||||
.set_multicast_loop_v6(u32::from(ttl))
|
||||
.map_err(|err| ProbeError::Io(err.to_string()))?;
|
||||
let _ = socket.send_to(&[0u8; 4], addr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user