* Socket.cs: don't throw when there's no ipv6 configuration.
svn path=/branches/mono-2-2/mcs/; revision=123833
+2009-01-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * Socket.cs: don't throw when there's no ipv6 configuration.
+
2008-12-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
* UdpClient.cs: don't Poll() in Receive(), the call to ReceiveFrom
if (config != null)
ipv6Supported = config.Ipv6.Enabled ? -1 : 0;
#else
- NetConfig config = (NetConfig)System.Configuration.ConfigurationSettings.GetConfig("system.net/settings");
+ NetConfig config = System.Configuration.ConfigurationSettings.GetConfig("system.net/settings") as NetConfig;
if (config != null)
ipv6Supported = config.ipv6Enabled ? -1 : 0;
#endif
tmp.Close();
ipv6Supported = 1;
- } catch { }
+ } catch {
+ ipv6Supported = 0;
+ }
}
}
}