hotfix починил проверку subnet overlap
This commit is contained in:
parent
c1d68c0bfa
commit
52f57ea7c3
|
|
@ -137,7 +137,7 @@ public class IPv4Util {
|
||||||
var overlapped = new ArrayList<IPv4Subnet>();
|
var overlapped = new ArrayList<IPv4Subnet>();
|
||||||
var orderedByPrefix = result.stream().sorted(Comparator.comparing(IPv4Subnet::getPrefixLength)).toList();
|
var orderedByPrefix = result.stream().sorted(Comparator.comparing(IPv4Subnet::getPrefixLength)).toList();
|
||||||
orderedByPrefix.stream()
|
orderedByPrefix.stream()
|
||||||
.filter(subnet -> subnet.getPrefixLength() > 32)
|
.filter(subnet -> subnet.getPrefixLength() < 32)
|
||||||
.forEach(parent -> orderedByPrefix.forEach(subnet -> {
|
.forEach(parent -> orderedByPrefix.forEach(subnet -> {
|
||||||
if (subnet.equals(parent)) {
|
if (subnet.equals(parent)) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue