Skip to content

Commit ca762c2

Browse files
authored
Merge pull request #862 from Unity-Technologies/ipv6-normalize-profiles
Remove the machine.config check for IPv6 support We want the .NET 4.x and the .NET Standard 2.0 profiles to work the same with respect to IPv6. Previously, the .NET 4.x profile checked the machine.config file for IPv6 support. This change removes the code which checks the machine.config file, and instead always returns true. Later, we will use the Unity PAL to get the proper value for each platform. For now, we want consistency. I'll back port this to 2018.1. No release notes for this change.
2 parents 6d1b992 + 14342b1 commit ca762c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mcs/class/System/ReferenceSources/SettingsSectionInternal.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ internal static SettingsSectionInternal Section {
3030

3131
internal bool Ipv6Enabled {
3232
get {
33+
#if !UNITY
3334
#if CONFIGURATION_DEP && !MOBILE
3435
try {
3536
var config = (SettingsSection) System.Configuration.ConfigurationManager.GetSection ("system.net/settings");
3637
if (config != null)
3738
return config.Ipv6.Enabled;
3839
} catch {
3940
}
41+
#endif
4042
#endif
4143

4244
return true;

0 commit comments

Comments
 (0)