Skip to content

Commit 67b744a

Browse files
cliffhallclaude
andcommitted
fix(fetch): add 6to4 2002::/16 to the explicit non-public ranges (#4838)
Newer Python tables read 2002::/16 as non-global and older 3.10 patch releases do not, so it joins the explicit list for the same answer on every supported Python. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent 91ced1e commit 67b744a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/fetch/src/mcp_server_fetch/server.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ async def _resolve_host(host: str) -> list[str]:
6666
"100::/64",
6767
"2001::/23",
6868
"2001:db8::/32",
69+
"2002::/16",
6970
"fc00::/7",
7071
"fe80::/10",
7172
)

‎src/fetch/tests/test_protocol.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ async def test_redirect_to_private_address_is_refused(web: FakeWeb) -> None:
663663
# Read as global by is_global on older Python patch releases.
664664
"192.0.0.8",
665665
"64:ff9b:1::1",
666+
"2002:7f00:1::",
666667
# Multicast, which is_global does not exclude.
667668
"224.0.0.251",
668669
],

0 commit comments

Comments
 (0)