diff options
author | Adam Frisby | 2007-06-27 08:47:57 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-27 08:47:57 +0000 |
commit | 6a0d4667eab20ac88adc42e31737d594931117ee (patch) | |
tree | cbb62df7f2edb3259b53254df58ee74c62cf465c /Common | |
parent | The following events now work: (diff) | |
download | opensim-SC-6a0d4667eab20ac88adc42e31737d594931117ee.zip opensim-SC-6a0d4667eab20ac88adc42e31737d594931117ee.tar.gz opensim-SC-6a0d4667eab20ac88adc42e31737d594931117ee.tar.bz2 opensim-SC-6a0d4667eab20ac88adc42e31737d594931117ee.tar.xz |
* Added patch for SYSTEMIP handling when an IPv6 address is the primary address of the system. (as is the case on Windows Vista)
Diffstat (limited to 'Common')
-rw-r--r-- | Common/OpenSim.Framework/Types/RegionInfo.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Common/OpenSim.Framework/Types/RegionInfo.cs b/Common/OpenSim.Framework/Types/RegionInfo.cs index 3776c03..48e6922 100644 --- a/Common/OpenSim.Framework/Types/RegionInfo.cs +++ b/Common/OpenSim.Framework/Types/RegionInfo.cs | |||
@@ -177,7 +177,16 @@ namespace OpenSim.Framework.Types | |||
177 | System.Net.IPAddress[] ips = System.Net.Dns.GetHostAddresses(localhostname); | 177 | System.Net.IPAddress[] ips = System.Net.Dns.GetHostAddresses(localhostname); |
178 | try | 178 | try |
179 | { | 179 | { |
180 | this.CommsIPListenAddr = ips[0].ToString(); | 180 | this.CommsIPListenAddr = "0.0.0.0"; // Incase a IPv4 address isnt found |
181 | |||
182 | foreach (System.Net.IPAddress ip in ips) | ||
183 | { | ||
184 | if (ip.AddressFamily.ToString() == System.Net.Sockets.ProtocolFamily.InterNetwork.ToString()) | ||
185 | { | ||
186 | this.CommsIPListenAddr = ip.ToString(); | ||
187 | break; | ||
188 | } | ||
189 | } | ||
181 | } | 190 | } |
182 | catch (Exception e) | 191 | catch (Exception e) |
183 | { | 192 | { |