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
>> require 'ipaddr' >> require 'ipaddress' >> IPAddr.new("172.16.10.1/24").to_i => 2886732288 >> IPAddress("172.16.10.1/24").to_i => 2886732289
The text was updated successfully, but these errors were encountered:
Looks like the subnet affects IPAddr and it returns the network IP 172.16.10.0 and not the IP address.
>> IPAddr.new("172.16.10.1").to_i => 2886732289
I would consider 2886732289 to be the expected result as the subnet shouldn't matter when converting an IP address to an integer.
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: