* Socket.cs: add a static ctor so that ipv4Supported and ipv6Supported are initialized (they are used by the runtime). svn path=/trunk/mcs/; revision=98073
@@ -1,3 +1,9 @@
+
+Wed Mar 12 20:06:07 CET 2008 Paolo Molaro <[email protected]>
+ * Socket.cs: add a static ctor so that ipv4Supported and ipv6Supported
+ are initialized (they are used by the runtime).
2008-02-01 Dick Porter <[email protected]>
* TcpClient.cs: If the Connect fails (when given an array of
@@ -529,6 +529,11 @@ namespace System.Net.Sockets
}
+ static Socket () {
+ // initialize ipv4Supported and ipv6Supported
+ CheckProtocolSupport ();
+ }
/* the field "socket" is looked up by name by the runtime */
private IntPtr socket;
private AddressFamily address_family;