Skip to content

gh-160227: Add 192.88.99.2/32 (RFC 6751) to ipaddress IPv4 private networks - #160230

Open
gggg5151 wants to merge 1 commit into
python:mainfrom
gggg5151:gh-160227-ipaddress-6a44
Open

gggg5151 wants to merge 1 commit into
python:mainfrom
gggg5151:gh-160227-ipaddress-6a44

Conversation

@gggg5151

@gggg5151 gggg5151 commented Oct 22, 2026 •

Copy link
Copy Markdown

IANA's IPv4 Special-Purpose Address Registry lists 192.88.99.2/32 (6a44-relay anycast address, RFC 6751) with Globally Reachable = False. The row was added to the registry on 2025-06-26, after the IPv4 list in ipaddress was last updated in gh-113171, so ipaddress.ip_address('192.88.99.2').is_global currently returns True.

This PR:

  • adds 192.88.99.2/32 to _IPv4Constants._private_networks
  • extends testReservedIpv4 to check is_global and is_private for that address

The rest of 192.88.99.0/24 (deprecated 6to4 relay anycast, RFC 7526) is left unchanged, since its registry row has no Globally Reachable value.

I prepared this change with the help of an AI assistant (Claude Code). I reproduced the bug on main myself. The full test suite passes except test_compileall, which fails the same way on main without this change in my environment.

🤖 Generated with Claude Code

…ate networks

IANA's IPv4 Special-Purpose Address Registry lists 192.88.99.2/32
(6a44-relay anycast address, RFC 6751) as not globally reachable. The
row was added to the registry on 2025-06-26, after the IPv4 list was
last updated in pythongh-113171.
@python-cla-bot

python-cla-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant