Closed postmodern closed 7 months ago
Currently IPRange::CIDR#first returns A.B.C.0 for A.B.C.D/24, and IPRange::CIDR#last returns A.B.C.255 for A.B.C.D/24. However, IPRange::CIDR#each will skip .0 and .255 IP addresses. Have #first return A.B.C.1 and #last return A.B.C.254.
IPRange::CIDR#first
A.B.C.0
A.B.C.D/24
IPRange::CIDR#last
A.B.C.255
IPRange::CIDR#each
.0
.255
#first
A.B.C.1
#last
A.B.C.254
Currently
IPRange::CIDR#first
returnsA.B.C.0
forA.B.C.D/24
, andIPRange::CIDR#last
returnsA.B.C.255
forA.B.C.D/24
. However,IPRange::CIDR#each
will skip.0
and.255
IP addresses. Have#first
returnA.B.C.1
and#last
returnA.B.C.254
.