Skip to content

Commit 4068aab

Browse files
committed
Enable IPv6 support in the settings files
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.
1 parent dcf567f commit 4068aab

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

data/net_2_0/machine.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@
118118
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
119119
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
120120
</webRequestModules>
121+
<settings>
122+
<ipv6 enabled="true"/>
123+
</settings>
121124
</system.net>
122125

123126
<system.runtime.remoting>

data/net_4_0/machine.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@
135135
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
136136
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
137137
</webRequestModules>
138+
<settings>
139+
<ipv6 enabled="true"/>
140+
</settings>
138141
</system.net>
139142

140143
<system.runtime.remoting>

data/net_4_5/machine.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
139139
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
140140
</webRequestModules>
141+
<settings>
142+
<ipv6 enabled="true"/>
143+
</settings>
141144
</system.net>
142145

143146
<system.runtime.remoting>

0 commit comments

Comments
 (0)