Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

ipaddress: 192.88.99.2 (6a44 relay anycast, RFC 6751) is reported as globally reachable

Aberta
#160,227 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
networking

Direção de pesquisa

Start by reading ipaddress and locating _IPv4Constants._private_networks; the issue identifies the exact list to update. Compare the entry with the IANA IPv4 Special-Purpose Address Registry and check the existing tests for is_global and is_private. Done means the address is no longer reported as globally reachable; linked PRs gh-160230 and gh-160238 show work is already underway.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

stdlib type-bug
Bug report

This is the IPv4 counterpart of gh-151749.

192.88.99.2 is reported as globally reachable:

>>> import ipaddress
>>> ipaddress.ip_address('192.88.99.2').is_global
True
>>> ipaddress.ip_address('192.88.99.2').is_private
False

The IANA IPv4 Special-Purpose Address Registry lists it as not globally reachable:

Address Block Name RFC Globally Reachable
192.88.99.2/32 6a44-relay anycast address RFC 6751 False

IANA added this row on 2025-06-26, after the IPv4 list was last updated in gh-113171 (archived copies: 2025-06-11, without the row, 2025-07-10, with the row). The 3.13, 3.14 and 3.15 branches have the same list.

The practical impact is small, since 6a44 is an Experimental protocol and rarely deployed. However, the documentation says is_global follows the registry.

The fix is to add IPv4Network('192.88.99.2/32') to _IPv4Constants._private_networks. The deprecated 192.88.99.0/24 block, which has empty columns in the registry, would stay as it is. I'd like to submit a PR.

I found this with the help of an AI assistant and verified it myself on the main branch.

CPython versions tested on:

3.12, CPython main branch

Operating systems tested on:

Linux

Linked PRs
  • gh-160230
  • gh-160238
Linguagem predominante
Python
Estrelas
77.7k
Forks
38.3k
Merge médio
13h 43min
PRs com merge (30d)
704

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de python/cpython

Todas as issues de python/cpython

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.