| author | |
| committer | |
| log | be7065f7f541f3eb1dcb64869ef1fed716645cd1 |
| tree | ab749621658923dc6cf159f9a9d68603a10fc6f2 |
| parent | d0c6ed189b334fa4ad60485724d59ad9a78b0046 |
3 files changed, 3 insertions(+), 3 deletions(-)
lib/std/Io/Kqueue.zig+1-1| ... | @@ -1403,7 +1403,7 @@ fn openSocketPosix( | ... | @@ -1403,7 +1403,7 @@ fn openSocketPosix( |
| 1403 | 1403 | ||
| 1404 | if (options.ip6_only) { | 1404 | if (options.ip6_only) { |
| 1405 | if (posix.IPV6 == void) return error.OptionUnsupported; | 1405 | if (posix.IPV6 == void) return error.OptionUnsupported; |
| 1406 | try setSocketOption(k, socket_fd, posix.IPPROTO.IPV6, posix.IPV6.V6ONLY, 0); | 1406 | try setSocketOption(k, socket_fd, posix.IPPROTO.IPV6, posix.IPV6.V6ONLY, 1); |
| 1407 | } | 1407 | } |
| 1408 | 1408 | ||
| 1409 | return socket_fd; | 1409 | return socket_fd; |
lib/std/Io/Threaded.zig+1-1| ... | @@ -12409,7 +12409,7 @@ fn openSocketPosix( | ... | @@ -12409,7 +12409,7 @@ fn openSocketPosix( |
| 12409 | 12409 | ||
| 12410 | if (options.ip6_only) { | 12410 | if (options.ip6_only) { |
| 12411 | if (posix.IPV6 == void) return error.OptionUnsupported; | 12411 | if (posix.IPV6 == void) return error.OptionUnsupported; |
| 12412 | try setSocketOptionPosix(socket_fd, posix.IPPROTO.IPV6, posix.IPV6.V6ONLY, 0); | 12412 | try setSocketOptionPosix(socket_fd, posix.IPPROTO.IPV6, posix.IPV6.V6ONLY, 1); |
| 12413 | } | 12413 | } |
| 12414 | 12414 | ||
| 12415 | return socket_fd; | 12415 | return socket_fd; |
lib/std/Io/Uring.zig+1-1| ... | @@ -5984,7 +5984,7 @@ fn socket( | ... | @@ -5984,7 +5984,7 @@ fn socket( |
| 5984 | 5984 | ||
| 5985 | if (options.ip6_only) { | 5985 | if (options.ip6_only) { |
| 5986 | if (linux.IPV6 == void) return error.OptionUnsupported; | 5986 | if (linux.IPV6 == void) return error.OptionUnsupported; |
| 5987 | try ev.setsockopt(cancel_region, socket_fd, linux.IPPROTO.IPV6, linux.IPV6.V6ONLY, 0); | 5987 | try ev.setsockopt(cancel_region, socket_fd, linux.IPPROTO.IPV6, linux.IPV6.V6ONLY, 1); |
| 5988 | } | 5988 | } |
| 5989 | 5989 | ||
| 5990 | return socket_fd; | 5990 | return socket_fd; |