Skip to content

Commit 02968e9

Browse files
PiotrSikoraThomasdezeeuw
authored andcommitted
review: allow OS_ORIGINAL_DST on Fuchsia.
Signed-off-by: Piotr Sikora <[email protected]>
1 parent c05bd39 commit 02968e9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/sys/unix.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,10 +1793,16 @@ impl crate::Socket {
17931793
///
17941794
/// This value contains the original destination IPv4 address of the connection
17951795
/// redirected using `iptables` `REDIRECT` or `TPROXY`.
1796-
#[cfg(all(feature = "all", any(target_os = "android", target_os = "linux")))]
1796+
#[cfg(all(
1797+
feature = "all",
1798+
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
1799+
))]
17971800
#[cfg_attr(
17981801
docsrs,
1799-
doc(cfg(all(feature = "all", any(target_os = "android", target_os = "linux"))))
1802+
doc(cfg(all(
1803+
feature = "all",
1804+
any(target_os = "android", target_os = "fuchsia", target_os = "linux")
1805+
)))
18001806
)]
18011807
pub fn original_dst(&self) -> io::Result<SockAddr> {
18021808
// Safety: `getsockopt` initialises the `SockAddr` for us.

0 commit comments

Comments
 (0)