#FEATURE by stefan
authorStefan Vogel <sv@exept.de>
Thu, 22 Dec 2016 10:19:00 +0100
changeset 4239 827d8755965f
parent 4238 ab8390ef187a
child 4240 8a3ead2b3d72
#FEATURE by stefan class: Socket changed: #defaultIpDomainForConnect #newTCPclientToHost:port: Default is now both IPv4 and IPv6
Socket.st
--- a/Socket.st	Tue Dec 20 22:39:17 2016 +0100
+++ b/Socket.st	Thu Dec 22 10:19:00 2016 +0100
@@ -818,11 +818,11 @@
     ^ self
         newTCPclientToHost:hostNameOrAddress
         port:aPortOrServiceName
-        domain:nil
+        domain:self defaultIpDomainForConnect
         withTimeout:nil
 
     "
-      Socket newTCPclientToHost:'www.exept.de' port:'http'
+      Socket newTCPclientToHost:'www.exept.de' port:'https'
     "
 
     "Created: 31.10.1995 / 18:54:11 / cg"
@@ -1123,11 +1123,11 @@
 
 defaultIpDomainForConnect
     "answer the domain used to look up host names for connect:
-	#AF_INET    use only IPv4
-	#AF_INET6   use only IPv6
-	nil         use both IPv4 and IPv6"
-
-    ^ #AF_INET
+        #AF_INET    use only IPv4
+        #AF_INET6   use only IPv6
+        nil         use both IPv4 and IPv6"
+
+    ^ nil
 ! !
 
 !Socket class methodsFor:'obsolete'!