]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172)
authorPete Wicken <2273100+JamoBox@users.noreply.github.com>
Mon, 17 May 2021 07:52:36 +0000 (08:52 +0100)
committerGitHub <noreply@github.com>
Mon, 17 May 2021 07:52:36 +0000 (00:52 -0700)
commit83f0f8d62f279f846a92fede2244beaa0149b9d8
tree3651a35943d97d9cc50cc8efe387c50cf76ad5f6
parentc10392e7ddb3eafbd11e9ffe335c07648426715f
bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172)

For IPv4 mapped IPv6 addresses, defer privacy check to the mapped IPv4 address. Solves bug where public mapped IPv4 addresses are considered private by the IPv6 check.

Automerge-Triggered-By: GH:gpshead
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/NEWS.d/next/Library/2021-05-16-17-48-24.bpo-33433.MyzO71.rst [new file with mode: 0644]