Skip to content

Commit 5efec85

Browse files
committed
Fuchisia doesn't support ipv6 original_dst
Signed-off-by: Keith Mattix II <[email protected]>
1 parent 6800eea commit 5efec85

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/socket.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,16 +2276,10 @@ impl Socket {
22762276
///
22772277
/// This value contains the original destination IPv6 address of the connection
22782278
/// redirected using `ip6tables` `REDIRECT` or `TPROXY`.
2279-
#[cfg(all(
2280-
feature = "all",
2281-
any(target_os = "android", target_os = "fuchsia", target_os = "linux",)
2282-
))]
2279+
#[cfg(all(feature = "all", any(target_os = "android", target_os = "linux",)))]
22832280
#[cfg_attr(
22842281
docsrs,
2285-
doc(cfg(all(
2286-
feature = "all",
2287-
any(target_os = "android", target_os = "fuchsia", target_os = "linux",)
2288-
)))
2282+
doc(cfg(all(feature = "all", any(target_os = "android", target_os = "linux",))))
22892283
)]
22902284
pub fn original_dst_ipv6(&self) -> io::Result<SockAddr> {
22912285
// Safety: `getsockopt` initialises the `SockAddr` for us.

0 commit comments

Comments
 (0)