We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SO_REUSEPORT
1 parent fd0bdfb commit 44b5910Copy full SHA for 44b5910
src/protocol/mdns.rs
@@ -128,9 +128,8 @@ impl Mdns {
128
) -> crate::Result<Self> {
129
let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))?;
130
socket.set_reuse_address(true)?;
131
- // TODO: fix
132
- // #[cfg(unix)]
133
- // socket.set_reuse_port(true)?;
+ #[cfg(unix)]
+ socket.set_reuse_port(true)?;
134
socket.bind(
135
&SocketAddr::new(IpAddr::V4(Ipv4Addr::UNSPECIFIED), IPV4_MULTICAST_PORT).into(),
136
)?;
0 commit comments