Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Oct 7, 2024
1 parent e51948c commit b5d253a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ AggregatedUploads AS (
List<AnalysedRule> rules = new ArrayList<>();
for (String ip : ips) {
try {
if (new IPAddressString(ip).getAddress().isAnyLocal()) {
if (new IPAddressString(ip).getAddress().isLocal()) {
continue;
}
rules.add(new AnalysedRule(
Expand All @@ -216,7 +216,7 @@ AggregatedUploads AS (

public Collection<IPAddress> filterIP(Collection<IPAddress> ips) {
var list = new ArrayList<>(ips);
list.removeIf(IPAddress::isAnyLocal);
list.removeIf(IPAddress::isLocal);
return list;
}

Expand Down

0 comments on commit b5d253a

Please sign in to comment.