Skip to content

Commit

Permalink
feat: sockopt Ipv6Ttl for apple targets (#2287)
Browse files Browse the repository at this point in the history
* feat: sockopt Ipv6Ttl for apple targets

* changelog

* temporarily enable test for Ipv6Ttl on apple targets

* revert last commit
  • Loading branch information
SteveLauC committed Feb 25, 2024
1 parent 1def0c0 commit b171eeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/2287.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add socket option Ipv6Ttl for apple targets.
2 changes: 1 addition & 1 deletion src/sys/socket/sockopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ sockopt_impl!(
libc::IP_TTL,
libc::c_int
);
#[cfg(any(linux_android, target_os = "freebsd"))]
#[cfg(any(apple_targets, linux_android, target_os = "freebsd"))]
sockopt_impl!(
/// Set the unicast hop limit for the socket.
Ipv6Ttl,
Expand Down

0 comments on commit b171eeb

Please sign in to comment.