Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/jdk/java/net/MulticastSocket/NoLoopbackPackets.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void main(String[] args) throws Exception {
}

NetworkConfiguration nc = NetworkConfiguration.probe();
if (IPSupport.hasIPv6() && nc.hasTestableIPv6Address()) {
if (IPSupport.hasIPv6() && nc.ip6MulticastInterfaces().findAny().isPresent()) {
groups.add(new InetSocketAddress(InetAddress.getByName("::ffff:224.1.1.2"), port));
groups.add(new InetSocketAddress(InetAddress.getByName("ff02::1:1"), port));
}
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/net/MulticastSocket/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void allTests() throws IOException {
doTest("224.80.80.80");

// If IPv6 is enabled perform multicast tests with various scopes
if (nc.hasTestableIPv6Address()) {
if (nc.ip6MulticastInterfaces().findAny().isPresent()) {
doTest("ff01::a");
}

Expand Down