We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying this
import inet.ipaddr.*; public class MyClass { public static void main(String args[]) { try { IPAddress addr = new IPAddressString("::/0").toAddress(); System.out.println(addr.getNetworkPrefixLength()); System.out.println(addr.toInetAddress().getHostAddress()); } catch(Exception e) { System.out.println(e); } } }
which gives
0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
But according to documentation toInetAddress() should give the lowest of the range which I suppose should be 0:0:0:0:0:0:0:0 no?
toInetAddress()
0:0:0:0:0:0:0:0
I have no idea about CIDR and IP in general so If I'm mistaken apologies in advance.
The text was updated successfully, but these errors were encountered:
You're right, that's a bug with toInetAddress(). Will fix very shortly. As a workaround, you can do:
addr.getLower().toInetAddress().getHostAddress()
Sorry, something went wrong.
This is fixed in release 5.0.2, which is in maven central repo
No branches or pull requests
I'm trying this
which gives
But according to documentation
toInetAddress()
should give the lowest of the range which I suppose should be0:0:0:0:0:0:0:0
no?I have no idea about CIDR and IP in general so If I'm mistaken apologies in advance.
The text was updated successfully, but these errors were encountered: