v3.0.0-rc2
Pre-release
Pre-release
Backward Compatibility Breaking Changes
- Separate "private" from other "reserved" IP addresses.
This changes the behaviour ofIP::isPrivate()
andIPBlock::getPrivateBlocks()
to be more narrow in scope.
The previous behaviour has been moved to new methods:IP::isReserved()
andIPBlock::getReservedBlocks()
. IP::isPrivate()
renamed toIP::isReserved()
IPBlock::getPrivateBlocks()
renamed toIPBlock::getReservedBlocks()
IP::isPrivate()
now only tests if an IP is in a forwardable and non globally reachable IP Block as defined in the IANA special-purpose address registryIPBlock::getPrivateBlocks()
now returns only the forwardable and non globally reachable IP Blocks as defined in the IANA special-purpose address registry