diff --git a/net/cidr/range_v4.go b/net/cidr/range_v4.go index 27fe60d..1beb18f 100644 --- a/net/cidr/range_v4.go +++ b/net/cidr/range_v4.go @@ -44,10 +44,11 @@ func (cr *cidrRangeIPv4) Range(exclude []net.IP) []net.IP { } r := make([]net.IP, 0) +Loop: for i := fNum; i <= lNum; i++ { for _, exN := range exs { if exN == i { - continue + continue Loop } } r = append(r, converter.IntToIPv4(i))