aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common
diff options
context:
space:
mode:
authorAdam Frisby2007-06-27 08:47:57 +0000
committerAdam Frisby2007-06-27 08:47:57 +0000
commit6a0d4667eab20ac88adc42e31737d594931117ee (patch)
treecbb62df7f2edb3259b53254df58ee74c62cf465c /Common
parentThe following events now work: (diff)
downloadopensim-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.cs11
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 {