8000 bpo-42937: Update ipaddress.py to include additional private range of IPs by wjohnston99 · Pull Request #26205 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-42937: Update ipaddress.py to include additional private range of IPs #26205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-42937 : Update ipaddress.py to include additional private range o…
…f IPs

There is a lot more IPs in the private address range.   I will create a separate issue for that.  This makes this a very simple request.  I verified the IP and that it is not routeable globally according according to IANA.  This is my first PR for cpython.   Please let me know if bpo or anything like that is not correct.
    
https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
  • Loading branch information
wjohnston99 authored May 18, 2021
commit d4d4b036fba2e0492faafacd691e8be6738a6b53
1 change: 1 addition & 0 deletions Lib/ipaddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,7 @@ class _IPv4Constants:
IPv4Network('169.254.0.0/16'),
IPv4Network('172.16.0.0/12'),
IPv4Network('192.0.0.0/29'),
IPv4Network('192.0.0.8/32'),
IPv4Network('192.0.0.170/31'),
IPv4Network('192.0.2.0/24'),
IPv4Network('192.168.0.0/16'),
Expand Down
0