Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8246114: java/net/MulticastSocket/Promiscuous.java fails after 824107…
…2 (multi-homed systems)

Fixed the test - an IPv4 group cannot be joined from an interface that has no IPv4 address configured

Reviewed-by: alanb, amlu
  • Loading branch information
dfuch committed Jun 30, 2020
1 parent abc55de commit 0f43de9f026d5405dd7a38799e499312ef8df890
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -119,7 +119,7 @@ static void test(InetAddress group1, InetAddress group2)

// join groups on all network interfaces
NetworkConfiguration.probe()
.multicastInterfaces(false)
.ip4MulticastInterfaces(false)
.forEach((nic) -> {
try {
mc1.joinGroup(toSocketAddress(group1), nic);
@@ -155,7 +155,7 @@ static void test(InetAddress group1, InetAddress group2)

// leave groups on all network interfaces
NetworkConfiguration.probe()
.multicastInterfaces(false)
.ip4MulticastInterfaces(false)
.forEach((nic) -> {
try {
mc1.leaveGroup(toSocketAddress(group1), nic);

0 comments on commit 0f43de9

Please sign in to comment.