This commit is contained in:
crusader 2017-11-17 19:30:12 +09:00
parent 4d901ec644
commit 8361ad5b53

View File

@ -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))