Skip to content

Commit

Permalink
Update cidr.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 authored Aug 22, 2020
1 parent 8e358b4 commit d9e79e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cidr.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func SplitIPNetIntoN(iprange *net.IPNet, n int) ([]*net.IPNet, error) {
// invalid value
if n <= 1 || AddressCountIpnet(iprange) < uint64(n) {
subnets = append(subnets, iprange)
return nil, errors.New("invalid value provided for n")
return subnets, nil
}
// power of two
if isPowerOfTwo(n) || isPowerOfTwoPlusOne(n) {
Expand Down

0 comments on commit d9e79e3

Please sign in to comment.