Skip to content

Conversation

@rschmitt
Copy link
Contributor

@rschmitt rschmitt commented Dec 2, 2025

0.0.0.0/8 IPv4 addresses are not illegal, just "reserved." This change brings InetAddressUtils in line with the JDK's InetAddress implementation, which accepts these addresses without issue, e.g.:

    InetAddress.getByAddress(new byte[]{ 0, 10, 25, 68 });
    InetAddress.getByName("0.10.25.68");

0.0.0.0/8 IPv4 addresses are not illegal, just "reserved." This change
brings `InetAddressUtils` in line with the JDK's `InetAddress`
implementation, which accepts these addresses without issue, e.g.:

```java
    InetAddress.getByAddress(new byte[]{ 0, 10, 25, 68 });
    InetAddress.getByName("0.10.25.68");
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants