This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 5250758127 Fix copy/paste error 5250758127 is described below commit 525075812738411fd01f3f31e1f1b01561cd9ceb Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Jan 12 22:23:30 2023 +0000 Fix copy/paste error --- test/org/apache/catalina/tribes/TesterMulticast.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/org/apache/catalina/tribes/TesterMulticast.java b/test/org/apache/catalina/tribes/TesterMulticast.java index 866d50ed30..3fb019b775 100644 --- a/test/org/apache/catalina/tribes/TesterMulticast.java +++ b/test/org/apache/catalina/tribes/TesterMulticast.java @@ -18,8 +18,8 @@ package org.apache.catalina.tribes; import java.net.DatagramPacket; import java.net.InetAddress; +import java.net.InetSocketAddress; import java.net.MulticastSocket; -import java.net.NetworkInterface; import java.net.UnknownHostException; /** @@ -82,8 +82,7 @@ public class TesterMulticast { public void run() { try (MulticastSocket s = new MulticastSocket(PORT)) { s.setLoopbackMode(false); - NetworkInterface networkInterface = NetworkInterface.getByInetAddress(INET_ADDRESS); - s.setNetworkInterface(networkInterface); + s.joinGroup(new InetSocketAddress(INET_ADDRESS, 0), null); DatagramPacket p = new DatagramPacket(new byte[4], 4); p.setAddress(INET_ADDRESS); p.setPort(PORT); @@ -110,8 +109,7 @@ public class TesterMulticast { public void run() { try (MulticastSocket s = new MulticastSocket(PORT)) { s.setLoopbackMode(false); - NetworkInterface networkInterface = NetworkInterface.getByInetAddress(INET_ADDRESS); - s.setNetworkInterface(networkInterface); + s.joinGroup(new InetSocketAddress(INET_ADDRESS, 0), null); DatagramPacket p = new DatagramPacket(new byte[4], 4); p.setAddress(INET_ADDRESS); p.setPort(PORT); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org