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