File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -833,10 +833,10 @@ The following functions all create :ref:`socket objects <socket-objects>`.
833833 , a default reasonable value is chosen.
834834 *reuse_port * dictates whether to set the :data: `SO_REUSEPORT ` socket option.
835835
836- If *dualstack_ipv6 * is true and the platform supports it the socket will
837- be able to accept both IPv4 and IPv6 connections, else it will raise
838- :exc: `ValueError `. Most POSIX platforms and Windows are supposed to support
839- this functionality.
836+ If *dualstack_ipv6 * is true, * family * is :data: ` AF_INET6 ` and the platform
837+ supports it the socket will be able to accept both IPv4 and IPv6 connections,
838+ else it will raise :exc: `ValueError `. Most POSIX platforms and Windows are
839+ supposed to support this functionality.
840840 When this functionality is enabled the address returned by
841841 :meth: `socket.getpeername ` when an IPv4 connection occurs will be an IPv6
842842 address represented as an IPv4-mapped IPv6 address.
You can’t perform that action at this time.
0 commit comments