Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Jan 3, 2024
1 parent 3c1dc5c commit 3e8ce61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jgroups/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -4704,7 +4704,7 @@ public static void resetCacheAddresses(boolean reset_interfaces, boolean reset_a
/** Returns all addresses of all interfaces (that are up) that satisfy a given filter (ignored if null) */
public static Collection<InetAddress> getAllAvailableAddresses(Predicate<InetAddress> filter) {
Collection<InetAddress> cached_addresses=CACHED_ADDRESSES;
if(cached_addresses != null)
if(cached_addresses != null && filter == null)
return cached_addresses;
Set<InetAddress> retval=new HashSet<>();
try {
Expand Down

0 comments on commit 3e8ce61

Please sign in to comment.