Repository navigation
Conversation
|
Review requested:
|
|
Follow-up commit on this branch: also include RFC 6598 CGNAT ( Same unreleased-API helper surface as the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #65204 +/- ##
==========================================
+ Coverage 90.31% 90.68% +0.36%
==========================================
Files 760 797 +37
Lines 248532 279582 +31050
Branches 46908 53781 +6873
==========================================
+ Hits 224467 253530 +29063
- Misses 15505 16343 +838
- Partials 8560 9709 +1149
🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
PRIVATE_RANGES covers private, loopback, and link-local ranges. It already includes 127.0.0.0/8 and ::1/128, and left out the IPv4 "this" network (0.0.0.0/8) and the IPv6 unspecified address (::/128). Those are common localhost spellings. Signed-off-by: Sasha Mitchell <sash.t.mitchell@gmail.com>
Include RFC 6598 (100.64.0.0/10) and RFC 2544 (198.18.0.0/15). The helper then matches the non-global IPv4 space used by carrier NAT and benchmarking labs. Signed-off-by: Sasha Mitchell <sash.t.mitchell@gmail.com>
e8d6fba to
14f0973
Compare
|
Thanks for the pointer. Both commits are signed off and the body lines are wrapped to 72 columns. The tip is 14f0973. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
I do believe "This API is unreleased (added: REPLACEME), so this is a constants/docs completion rather than a HackerOne report." part of the description is no longer true. Can you update the PR description to be up to date with the latest state of the changes? |
|
hm... I think this would be fine as a semver-minor. Could be convinced it's a major. How about we add don't land labels for now? |
Summary
BlockList.PRIVATE_RANGESis documented as a convenience list of private, loopback, and link-local ranges for blocking non-routable addresses. It already includes127.0.0.0/8and::1/128, but omitted:0.0.0.0/8(IPv4 "this" network / unspecified; common alternate localhost spelling)::/128(IPv6 unspecified)Callers who populate a blocklist from
PRIVATE_RANGESalone would still treat0.0.0.0and::as allowed.Test plan
test/parallel/test-blocklist.jsPRIVATE_RANGES coverage for0.0.0.0,0.0.0.1, and::doc/api/net.mdThis API is unreleased (
added: REPLACEME), so this is a constants/docs completion rather than a HackerOne report.Made with Cursor