hotfix починил проверку subnet overlap

This commit is contained in:
kirillius 2026-05-14 19:40:59 +03:00
parent c1d68c0bfa
commit 52f57ea7c3
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public class IPv4Util {
var overlapped = new ArrayList<IPv4Subnet>();
var orderedByPrefix = result.stream().sorted(Comparator.comparing(IPv4Subnet::getPrefixLength)).toList();
orderedByPrefix.stream()
.filter(subnet -> subnet.getPrefixLength() > 32)
.filter(subnet -> subnet.getPrefixLength() < 32)
.forEach(parent -> orderedByPrefix.forEach(subnet -> {
if (subnet.equals(parent)) {
return;