aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/GridManager.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-17 19:40:22 +0000
committerAdam Frisby2007-07-17 19:40:22 +0000
commit3a554de6e2350e0c282e3ede3b538fb5c32923c2 (patch)
tree404760237114263ebb9780f22f543d59245153e0 /OpenSim/Grid/GridServer/GridManager.cs
parent* Added quick ping check reply system to OGS1GridServices (diff)
downloadopensim-SC_OLD-3a554de6e2350e0c282e3ede3b538fb5c32923c2.zip
opensim-SC_OLD-3a554de6e2350e0c282e3ede3b538fb5c32923c2.tar.gz
opensim-SC_OLD-3a554de6e2350e0c282e3ede3b538fb5c32923c2.tar.bz2
opensim-SC_OLD-3a554de6e2350e0c282e3ede3b538fb5c32923c2.tar.xz
* Applying babblefrog's DNS patches from issue #188
Diffstat (limited to 'OpenSim/Grid/GridServer/GridManager.cs')
-rw-r--r--OpenSim/Grid/GridServer/GridManager.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs
index 22bffa0..b3ba4e5 100644
--- a/OpenSim/Grid/GridServer/GridManager.cs
+++ b/OpenSim/Grid/GridServer/GridManager.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Net;
31using System.Reflection; 32using System.Reflection;
32using System.Xml; 33using System.Xml;
33using libsecondlife; 34using libsecondlife;
@@ -329,7 +330,7 @@ namespace OpenSim.Grid.GridServer
329 foreach (KeyValuePair<ulong, SimProfileData> aSim in neighbours) 330 foreach (KeyValuePair<ulong, SimProfileData> aSim in neighbours)
330 { 331 {
331 NeighbourBlock = new Hashtable(); 332 NeighbourBlock = new Hashtable();
332 NeighbourBlock["sim_ip"] = aSim.Value.serverIP.ToString(); 333 NeighbourBlock["sim_ip"] = Dns.GetHostByName(aSim.Value.serverIP.ToString()).AddressList[0].ToString();
333 NeighbourBlock["sim_port"] = aSim.Value.serverPort.ToString(); 334 NeighbourBlock["sim_port"] = aSim.Value.serverPort.ToString();
334 NeighbourBlock["region_locx"] = aSim.Value.regionLocX.ToString(); 335 NeighbourBlock["region_locx"] = aSim.Value.regionLocX.ToString();
335 NeighbourBlock["region_locy"] = aSim.Value.regionLocY.ToString(); 336 NeighbourBlock["region_locy"] = aSim.Value.regionLocY.ToString();
@@ -348,7 +349,7 @@ namespace OpenSim.Grid.GridServer
348 neighbour = getRegion(Helpers.UIntsToLong((uint)((TheSim.regionLocX + x) * 256), (uint)(TheSim.regionLocY + y) * 256)); 349 neighbour = getRegion(Helpers.UIntsToLong((uint)((TheSim.regionLocX + x) * 256), (uint)(TheSim.regionLocY + y) * 256));
349 350
350 NeighbourBlock = new Hashtable(); 351 NeighbourBlock = new Hashtable();
351 NeighbourBlock["sim_ip"] = neighbour.serverIP; 352 NeighbourBlock["sim_ip"] = Dns.GetHostByName(neighbour.serverIP).AddressList[0].ToString();
352 NeighbourBlock["sim_port"] = neighbour.serverPort.ToString(); 353 NeighbourBlock["sim_port"] = neighbour.serverPort.ToString();
353 NeighbourBlock["region_locx"] = neighbour.regionLocX.ToString(); 354 NeighbourBlock["region_locx"] = neighbour.regionLocX.ToString();
354 NeighbourBlock["region_locy"] = neighbour.regionLocY.ToString(); 355 NeighbourBlock["region_locy"] = neighbour.regionLocY.ToString();
@@ -407,7 +408,7 @@ namespace OpenSim.Grid.GridServer
407 else 408 else
408 { 409 {
409 Console.WriteLine("found region"); 410 Console.WriteLine("found region");
410 responseData["sim_ip"] = simData.serverIP; 411 responseData["sim_ip"] = Dns.GetHostByName(simData.serverIP).AddressList[0].ToString();
411 responseData["sim_port"] = simData.serverPort.ToString(); 412 responseData["sim_port"] = simData.serverPort.ToString();
412 responseData["http_port"] = simData.httpPort.ToString(); 413 responseData["http_port"] = simData.httpPort.ToString();
413 responseData["remoting_port"] = simData.remotingPort.ToString(); 414 responseData["remoting_port"] = simData.remotingPort.ToString();
@@ -567,7 +568,7 @@ namespace OpenSim.Grid.GridServer
567 respstring += "<sim>"; 568 respstring += "<sim>";
568 respstring += "<uuid>" + TheSim.UUID.ToString() + "</uuid>"; 569 respstring += "<uuid>" + TheSim.UUID.ToString() + "</uuid>";
569 respstring += "<regionname>" + TheSim.regionName + "</regionname>"; 570 respstring += "<regionname>" + TheSim.regionName + "</regionname>";
570 respstring += "<sim_ip>" + TheSim.serverIP + "</sim_ip>"; 571 respstring += "<sim_ip>" + Dns.GetHostByName(TheSim.serverIP).AddressList[0].ToString() + "</sim_ip>";
571 respstring += "<sim_port>" + TheSim.serverPort.ToString() + "</sim_port>"; 572 respstring += "<sim_port>" + TheSim.serverPort.ToString() + "</sim_port>";
572 respstring += "<region_locx>" + TheSim.regionLocX.ToString() + "</region_locx>"; 573 respstring += "<region_locx>" + TheSim.regionLocX.ToString() + "</region_locx>";
573 respstring += "<region_locy>" + TheSim.regionLocY.ToString() + "</region_locy>"; 574 respstring += "<region_locy>" + TheSim.regionLocY.ToString() + "</region_locy>";