ing
This commit is contained in:
parent
4d901ec644
commit
8361ad5b53
|
@ -44,10 +44,11 @@ func (cr *cidrRangeIPv4) Range(exclude []net.IP) []net.IP {
|
||||||
}
|
}
|
||||||
|
|
||||||
r := make([]net.IP, 0)
|
r := make([]net.IP, 0)
|
||||||
|
Loop:
|
||||||
for i := fNum; i <= lNum; i++ {
|
for i := fNum; i <= lNum; i++ {
|
||||||
for _, exN := range exs {
|
for _, exN := range exs {
|
||||||
if exN == i {
|
if exN == i {
|
||||||
continue
|
continue Loop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
r = append(r, converter.IntToIPv4(i))
|
r = append(r, converter.IntToIPv4(i))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user