Skip to content

Commit db1272f

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/socket.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,12 @@ test!(IPv4 recv_tos, set_recv_tos(true));
12011201
test!(IPv4 broadcast, set_broadcast(true));
12021202

12031203
test!(IPv6 unicast_hops_v6, set_unicast_hops_v6(20));
1204-
#[cfg(not(any(windows, target_os = "dragonfly", target_os = "freebsd")))]
1204+
#[cfg(not(any(
1205+
windows,
1206+
target_os = "dragonfly",
1207+
target_os = "freebsd",
1208+
target_os = "openbsd"
1209+
)))]
12051210
test!(IPv6 only_v6, set_only_v6(true));
12061211
// IPv6 socket are already IPv6 only on FreeBSD and Windows.
12071212
#[cfg(any(windows, target_os = "freebsd"))]

0 commit comments

Comments
 (0)