Skip to content

Commit 1a1087f

Browse files
committed
Add docs to socket.create_server
Family should be AF_INET when dualstack_ipv6 is True.
1 parent 12bd15f commit 1a1087f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ The following functions all create :ref:`socket objects <socket-objects>`.
854854
, a default reasonable value is chosen.
855855
*reuse_port* dictates whether to set the :data:`SO_REUSEPORT` socket option.
856856

857-
If *dualstack_ipv6* is true and the platform supports it the socket will
857+
If *dualstack_ipv6* is true, *family* is :data:`AF_INET6` and the platform supports it the socket will
858858
be able to accept both IPv4 and IPv6 connections, else it will raise
859859
:exc:`ValueError`. Most POSIX platforms and Windows are supposed to support
860860
this functionality.

0 commit comments

Comments
 (0)