Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public interface ModClusterLogger {
void sessionDrainTimeout(int sessions, Host host, Context context, float seconds);

@LogMessage(level = WARN)
@Message(id = 30, value = "Attempted to bind multicast socket to a unicast address: %s. Multicast socket will not be bound to an address.")
@Message(id = 30, value = "Attempted to bind multicast socket to a multicast address: %s. Multicast socket will not be bound to an address.")
void createMulticastSocketWithUnicastAddress(InetAddress address);

@LogMessage(level = WARN)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public String run() {
public MulticastSocket createMulticastSocket(InetAddress address, int port) throws IOException {
if ((address == null) || !this.linuxlike) return new MulticastSocket(port);

if (!address.isMulticastAddress()) {
if (address.isMulticastAddress()) {
ModClusterLogger.LOGGER.createMulticastSocketWithUnicastAddress(address);
return new MulticastSocket(port);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public void testMulticastSocketNoCrossTalk() throws IOException {

this.testMulticastSocket(socket, address, true);
// Test for cross-talking
this.testMulticastSocket(socket, InetAddress.getByName(GROUP2), false);
if (Double.parseDouble(System.getProperty("java.specification.version")) >= 1.8)
this.testMulticastSocket(socket, InetAddress.getByName(GROUP2), false);

socket.leaveGroup(address);
} finally {
Expand Down