Skip to content

Commit bfa740c

Browse files
Niklas HallqvistThomasdezeeuw
Niklas Hallqvist
authored andcommitted
OpenBSD IPv6 sockets are always IPv6 only, and the option is readonly. Do not try to set it at all.
1 parent eee1b78 commit bfa740c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/socket.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,12 @@ test!(IPv4 recv_tos, set_recv_tos(true));
11891189
test!(IPv4 broadcast, set_broadcast(true));
11901190

11911191
test!(IPv6 unicast_hops_v6, set_unicast_hops_v6(20));
1192-
#[cfg(not(any(windows, any(target_os = "dragonfly", target_os = "freebsd"))))]
1192+
#[cfg(not(any(
1193+
windows,
1194+
target_os = "dragonfly",
1195+
target_os = "freebsd",
1196+
target_os = "openbsd"
1197+
)))]
11931198
test!(IPv6 only_v6, set_only_v6(true));
11941199
// IPv6 socket are already IPv6 only on FreeBSD and Windows.
11951200
#[cfg(any(windows, any(target_os = "freebsd")))]

0 commit comments

Comments
 (0)