socket.has_ipv6 gives a false result: $ sysctl net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.all.disable_ipv6 = 1 $ python Python 3.11.8 (main, Feb 24 2024, 17:10:38) [GCC 13.2.1 20240210] on linux >>> import socket >>> socket.has_ipv6 True Reproducible: Always Steps to Reproduce: 1.disable ipv6 2.emerge --sync Actual Results: emerge --sync use ipv6 on ipv6 disabled system configuration Expected Results: emerge --sync use ipv4 if ipv6 is disabled
PR: https://github.com/gentoo/portage/pull/1309