]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 20 Jul 2026 19:59:56 +0000 (22:59 +0300)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 19:59:56 +0000 (19:59 +0000)
commitc7bbf040e721781be8f11a3b0716220835d4de2f
treee0237cc335c8e221c3635a5fa2e67900ab9852a9
parent96059f9446510f594c4148d53bd1a4e3532af697
gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292)

On DragonFly BSD setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, 0) succeeds without
actually clearing the flag, so has_dualstack_ipv6() wrongly returned True.
Verify with getsockopt() that IPV6_V6ONLY was cleared.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/socket.py
Misc/NEWS.d/next/Library/2026-07-20-22-03-44.gh-issue-154291.Mi5HeQ.rst [new file with mode: 0644]