diff --git a/src/sys/windows.rs b/src/sys/windows.rs index c233c600..98e43028 100644 --- a/src/sys/windows.rs +++ b/src/sys/windows.rs @@ -859,16 +859,7 @@ pub(crate) fn to_mreqn( } } -/// Get the value for the `SO_ORIGINAL_DST` option on this socket. -/// Only valid for sockets in accepting mode. -/// -/// Note: if using this function in a proxy context, you must query the -/// redirect records for this socket and set them on the outbound socket -/// created by your proxy in order for any OS level firewall rules to be -/// applied. Read more in the Windows bind and connect redirection -/// [documentation](https://learn.microsoft.com/en-us/windows-hardware/drivers/network/using-bind-or-connect-redirection). #[cfg(feature = "all")] -#[cfg_attr(docsrs, doc(cfg(all(windows, feature = "all"))))] pub(crate) fn original_dst(socket: Socket) -> io::Result { unsafe { SockAddr::try_init(|storage, len| {