Skip to content

Improve isPrivateIP function#555

Merged
hansott merged 5 commits intomainfrom
patch-is-private-ip
Mar 20, 2025
Merged

Improve isPrivateIP function#555
hansott merged 5 commits intomainfrom
patch-is-private-ip

Conversation

@timokoessler
Copy link
Copy Markdown
Member

@timokoessler timokoessler commented Mar 20, 2025

  • Add missing IPv6 ranges
  • Support all private IPv4-mapped IPv6 address

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@timokoessler timokoessler marked this pull request as ready for review March 20, 2025 13:17
"100::/64", // Discard prefix (RFC 6666)
"2001:db8::/32", // Documentation prefix (RFC 3849)
"3fff::/20", // Documentation prefix (RFC 9637)
"::ffff:0:0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

would also add desc here

timokoessler and others added 2 commits March 20, 2025 15:04
Co-authored-by: BitterPanda <bitterpanda@proton.me>
@hansott hansott merged commit a193ec3 into main Mar 20, 2025
12 checks passed
@hansott hansott deleted the patch-is-private-ip branch March 20, 2025 15:08
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.

3 participants