This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 6236f78024 Simplify (align with unlock accept)
6236f78024 is described below

commit 6236f78024b84be2498a5d8efbb54ee3ad1fb144
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Jun 14 20:21:19 2024 +0100

    Simplify (align with unlock accept)
---
 test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java 
b/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
index 1a63346831..f33ed90415 100644
--- a/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
+++ b/test/org/apache/tomcat/jni/TestSocketServerAnyLocalAddress.java
@@ -187,11 +187,7 @@ public class TestSocketServerAnyLocalAddress extends 
AbstractJniTest {
             Enumeration<NetworkInterface> networkInterfaces = 
NetworkInterface.getNetworkInterfaces();
             while (networkInterfaces.hasMoreElements()) {
                 NetworkInterface networkInterface = 
networkInterfaces.nextElement();
-                if (networkInterface.isPointToPoint()) {
-                    // Skip point to point networks such as VPN tunnels
-                    continue;
-                }
-                if (networkInterface.isUp()) {
+                if (!networkInterface.isPointToPoint() && 
networkInterface.isUp()) {
                     Enumeration<InetAddress> inetAddresses = 
networkInterface.getInetAddresses();
                     while (inetAddresses.hasMoreElements()) {
                         InetAddress inetAddress = inetAddresses.nextElement();


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to