Skip to content

Commit

Permalink
Enable IPv6 support in the settings files
Browse files Browse the repository at this point in the history
It looks like the upstream Mono code uses either the class library PAL
or a fallback to a hard-coded value to enable IPv6 support. The fallback
is not compiled in for the Unity code, so the class library code tries a
final fallback to the settings file. In the old Mono this setting was
present, but it does not exist in the new Mono, as it is not needed
upstream.

This change corrects Unity case 941946 by enabling IPv6 support in the
settings file.
  • Loading branch information
joshpeterson committed Jan 5, 2018
1 parent 0c511da commit 0d63f96
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/net_2_0/machine.config
Expand Up @@ -118,6 +118,9 @@
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="true"/>
</settings>
</system.net>

<system.runtime.remoting>
Expand Down
3 changes: 3 additions & 0 deletions data/net_4_0/machine.config
Expand Up @@ -135,6 +135,9 @@
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="true"/>
</settings>
</system.net>

<system.runtime.remoting>
Expand Down
3 changes: 3 additions & 0 deletions data/net_4_5/machine.config
Expand Up @@ -138,6 +138,9 @@
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="true"/>
</settings>
</system.net>

<system.runtime.remoting>
Expand Down

0 comments on commit 0d63f96

Please sign in to comment.