Skip to content
New issue

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

Add conveniences for testing ip addresses for known characteristics #562

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

mpilquist
Copy link
Member

@mpilquist mpilquist commented Feb 5, 2024

This PR adds the following operations to IpAddress:

  • isPrivate
  • isLoopback
  • isLinkLocal

Additionally, a number of new CIDR blocks are provided:

  • Ipv4Address.Classes.{A-E}
  • Ipv4Address.Classes.Private.{A-C}
  • Ipv4Address.Classes.Loopback
  • Ipv4Address.Classes.LinkLocal
  • Ipv6Address.UniqueLocalBlock
  • Ipv6Address.LinkLocalBlock

Finally, Ipv6Adress.Loopback was added.

Fixes #561

…es.Private.{A-C}, and Ipv6Address.UniqueLocalBlock
@henricook
Copy link

@mpilquist mpilquist changed the title Add IpAddress.isPrivate... Add conveniences for testing ip addresses for known characteristics Feb 5, 2024
@henricook
Copy link

This is glorious, speedy, work - thanks so much both

@mpilquist mpilquist merged commit 3de9fe7 into main Feb 5, 2024
24 checks passed
@mpilquist mpilquist deleted the topic/private-addresses branch February 5, 2024 17:02
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.

Feature Request: IsPrivate
3 participants