We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5eb8774 commit 45cf042Copy full SHA for 45cf042
src/java.base/share/native/libnet/net_util.c
@@ -81,7 +81,7 @@ DEF_JNI_OnLoad(JavaVM *vm, void *reserved)
81
* supporting socket APIs are available
82
*/
83
IPv4_available = IPv4_supported();
84
- IPv6_available = IPv6_supported() & (!preferIPv4Stack);
+ IPv6_available = IPv6_supported() && !preferIPv4Stack;
85
86
/* check if SO_REUSEPORT is supported on this platform */
87
REUSEPORT_available = reuseport_supported(IPv6_available);
0 commit comments