]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 May 2021 19:42:08 +0000 (12:42 -0700)
committerGitHub <noreply@github.com>
Mon, 17 May 2021 19:42:08 +0000 (12:42 -0700)
commita44bb6ddb17538b7b2096d13eb79a1208bd97f34
tree06f3b92b1d3381cfb53482647203cf75f5386e48
parent7a588621c2854bcef6ce9eeb54349b84ac078c45
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
(cherry picked from commit 83f0f8d62f279f846a92fede2244beaa0149b9d8)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
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]