Skip to content

Commit

Permalink
Fuchisia doesn't support ipv6 original_dst
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Mattix II <keithmattix@microsoft.com>
  • Loading branch information
keithmattix committed Sep 30, 2024
1 parent 6800eea commit 5efec85
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2276,16 +2276,10 @@ impl Socket {
///
/// This value contains the original destination IPv6 address of the connection
/// redirected using `ip6tables` `REDIRECT` or `TPROXY`.
#[cfg(all(
feature = "all",
any(target_os = "android", target_os = "fuchsia", target_os = "linux",)
))]
#[cfg(all(feature = "all", any(target_os = "android", target_os = "linux",)))]
#[cfg_attr(
docsrs,
doc(cfg(all(
feature = "all",
any(target_os = "android", target_os = "fuchsia", target_os = "linux",)
)))
doc(cfg(all(feature = "all", any(target_os = "android", target_os = "linux",))))
)]
pub fn original_dst_ipv6(&self) -> io::Result<SockAddr> {
// Safety: `getsockopt` initialises the `SockAddr` for us.
Expand Down

0 comments on commit 5efec85

Please sign in to comment.