use unimplemented!() for TODO set_reuse_port for windows platform
@@ -62,8 +62,9 @@ impl DNSConn {
socket.set_reuse_port(true)?;
//TODO: implement set_reuse_port for windows platform
+ // use unimplemented!() to intentionally break it
#[cfg(target_family = "windows")]
- log::warn!("socket.set_reuse_port(true) is not implemented in windows yet");
+ unimplemented!();
socket.set_read_timeout(Some(Duration::from_millis(100)))?;
socket.bind(&SockAddr::from(addr))?;
