]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-82836: fix private network check (#97733)
authorPete Wicken <2273100+JamoBox@users.noreply.github.com>
Tue, 29 Nov 2022 21:32:18 +0000 (21:32 +0000)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2022 21:32:18 +0000 (13:32 -0800)
commited391090cc8332406e6225d40877db6ff44a7104
tree1cbb1d2dd7f660e949e924a149907d4152b5a89c
parent052bc128ac0bcafd36a0cbee5f4c2a10d74468dc
gh-82836: fix private network check (#97733)

Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/NEWS.d/next/Library/2022-10-02-12-38-22.gh-issue-82836.OvYLmC.rst [new file with mode: 0644]