File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -882,10 +882,10 @@ The following functions all create :ref:`socket objects <socket-objects>`.
882
882
, a default reasonable value is chosen.
883
883
*reuse_port * dictates whether to set the :data: `SO_REUSEPORT ` socket option.
884
884
885
- If *dualstack_ipv6 * is true and the platform supports it the socket will
886
- be able to accept both IPv4 and IPv6 connections, else it will raise
887
- :exc: `ValueError `. Most POSIX platforms and Windows are supposed to support
888
- this functionality.
885
+ If *dualstack_ipv6 * is true, * family * is :data: ` AF_INET6 ` and the platform
886
+ supports it the socket will be able to accept both IPv4 and IPv6 connections,
887
+ else it will raise :exc: `ValueError `. Most POSIX platforms and Windows are
888
+ supposed to support this functionality.
889
889
When this functionality is enabled the address returned by
890
890
:meth: `socket.getpeername ` when an IPv4 connection occurs will be an IPv6
891
891
address represented as an IPv4-mapped IPv6 address.
You can’t perform that action at this time.
0 commit comments