Feature - added regex setting to RandomLoadBalancer and RoundRobinLoadBalancer #108

pull/4498/merge
mrniko 1 week ago
parent c5c55a8bc0
commit 0ba57eca24

@ -44,7 +44,7 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
return entries;
}
return entries.stream().filter(e ->
pattern.matcher(e.getClient().getAddr().getHostName()).matches())
pattern.matcher(e.getClient().getAddr().getHostName() + ":" + e.getClient().getAddr().getPort()).matches())
.collect(Collectors.toList());
}

Loading…
Cancel
Save