|
|
@@ -740,8 +740,9 @@ namespace System.Net.Sockets
|
|
|
if(ipv6Supported == -1) {
|
|
|
#if NET_2_0 && CONFIGURATION_DEP
|
|
|
SettingsSection config;
|
|
|
- config = (SettingsSection) System.Configuration.ConfigurationSettings.GetConfig("system.net/settings");
|
|
|
- ipv6Supported = config.Ipv6.Enabled ? -1 : 0;
|
|
|
+ config = (SettingsSection) System.Configuration.ConfigurationManager.GetSection ("system.net/settings");
|
|
|
+ if (config != null)
|
|
|
+ ipv6Supported = config.Ipv6.Enabled ? -1 : 0;
|
|
|
#else
|
|
|
NetConfig config = (NetConfig)System.Configuration.ConfigurationSettings.GetConfig("system.net/settings");
|
|
|
|