Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Faker::Internet.ip_v4_address to include all IP ranges #1494

Merged
merged 2 commits into from
Dec 16, 2018
Merged

Fix Faker::Internet.ip_v4_address to include all IP ranges #1494

merged 2 commits into from
Dec 16, 2018

Conversation

lucasqueiroz
Copy link
Member

According to #1479 and wikipedia, the Faker::Internet.ip_v4_address does not generate all valid IP addresses.
This Pull Request closes #1479 by generating four octets, each one ranging from 0 to 255.

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@vbrazo vbrazo merged commit d9a8680 into faker-ruby:master Dec 16, 2018
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
…y#1494)

* Change ip_v4 generator to use 0..255 range for all octects

* Add test for minimum ip address range
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Faker::Internet.ip_v4_address cannot output certain IP addresses
2 participants