Skip to content

Commit

Permalink
Fix org.apache.cxf.ws.discovery.WSDiscoveryClientTest.testMultiResponses
Browse files Browse the repository at this point in the history
  • Loading branch information
reta committed Aug 23, 2024
1 parent 577cd41 commit ad9ba43
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ static NetworkInterface findIpv4Interface() throws Exception {
if (ni.supportsMulticast() && ni.isUp()) {
for (InterfaceAddress ia : ni.getInterfaceAddresses()) {
if (ia.getAddress() instanceof java.net.Inet4Address && !ia.getAddress().isLoopbackAddress()
&& !ni.getDisplayName().startsWith("vnic")) {
&& !ni.getDisplayName().startsWith("vnic")
&& !ni.getDisplayName().startsWith("tailscale")) {
possibles.add(ni);
System.out.println("Found possible network interface:" + ni.getDisplayName());
}
Expand All @@ -80,8 +81,8 @@ static NetworkInterface findIpv4Interface() throws Exception {
}
}
for (NetworkInterface p : possibles) {
if (!p.isPointToPoint()) {
System.out.println("Using non-p2p network interface:" + p.getDisplayName());
if (p.isPointToPoint()) {
System.out.println("Using p2p network interface:" + p.getDisplayName());
return p;
}
}
Expand Down

0 comments on commit ad9ba43

Please sign in to comment.