]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jul 2026 20:25:21 +0000 (22:25 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 20:25:21 +0000 (20:25 +0000)
commit4833e1cc666375454e4f86aff11b6587968b3333
tree0f3cec8573eca71b53e8a808718f8172fca220fa
parent65312531958931136c34ddcfa7ad40c08a5d7c63
[3.13] gh-154291: Fix socket.has_dualstack_ipv6() on DragonFly BSD (GH-154292) (GH-154301)

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.
(cherry picked from commit c7bbf040e721781be8f11a3b0716220835d4de2f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]