diff --git a/src/org/jgroups/util/Util.java b/src/org/jgroups/util/Util.java index 9582a18972..e1671cc376 100644 --- a/src/org/jgroups/util/Util.java +++ b/src/org/jgroups/util/Util.java @@ -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 getAllAvailableAddresses(Predicate filter) { Collection cached_addresses=CACHED_ADDRESSES; - if(cached_addresses != null) + if(cached_addresses != null && filter == null) return cached_addresses; Set retval=new HashSet<>(); try {