From 6cf0b818642518aadd8aa288127de03f6fd1a079 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 13 Dec 2008 16:25:20 +0000 Subject: Mantis#2811. Thank you kindly, Diva for a patch that resolves some of our DNS/dotted decimal issues that plague teleporting. We are increasing the MajorInterfaceVersion from 1 to 2 in the gridserver, so sims will need to be updated on various grids. --- OpenSim/Grid/GridServer/GridManager.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'OpenSim/Grid/GridServer/GridManager.cs') diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index 08d5393..1ec4fd8 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs @@ -563,8 +563,7 @@ namespace OpenSim.Grid.GridServer foreach (RegionProfileData aSim in neighbours) { NeighbourBlock = new Hashtable(); - NeighbourBlock["sim_host"] = aSim.serverIP; - NeighbourBlock["sim_ip"] = Util.GetHostFromDNS(aSim.serverIP.ToString()).ToString(); + NeighbourBlock["sim_ip"] = aSim.serverIP; NeighbourBlock["sim_port"] = aSim.serverPort.ToString(); NeighbourBlock["region_locx"] = aSim.regionLocX.ToString(); NeighbourBlock["region_locy"] = aSim.regionLocY.ToString(); @@ -594,8 +593,7 @@ namespace OpenSim.Grid.GridServer (uint)(sim.regionLocY + y) * Constants.RegionSize)); NeighbourBlock = new Hashtable(); - NeighbourBlock["sim_host"] = neighbour.serverIP; - NeighbourBlock["sim_ip"] = Util.GetHostFromDNS(neighbour.serverIP).ToString(); + NeighbourBlock["sim_ip"] = neighbour.serverIP; NeighbourBlock["sim_port"] = neighbour.serverPort.ToString(); NeighbourBlock["region_locx"] = neighbour.regionLocX.ToString(); NeighbourBlock["region_locy"] = neighbour.regionLocY.ToString(); @@ -813,8 +811,7 @@ namespace OpenSim.Grid.GridServer { m_log.Info("[DATA]: found " + (string)simData.regionName + " regionHandle = " + (string)requestData["region_handle"]); - responseData["sim_ip"] = Util.GetHostFromDNS(simData.serverIP).ToString(); - responseData["sim_host"] = simData.serverIP; + responseData["sim_ip"] = simData.serverIP; responseData["sim_port"] = simData.serverPort.ToString(); responseData["server_uri"] = simData.serverURI; responseData["http_port"] = simData.httpPort.ToString(); @@ -881,7 +878,7 @@ namespace OpenSim.Grid.GridServer // For Sugilite compatibility simProfileBlock["regionhandle"] = aSim.regionHandle.ToString(); - simProfileBlock["sim_ip"] = aSim.serverIP.ToString(); + simProfileBlock["sim_ip"] = aSim.serverIP; simProfileBlock["sim_port"] = aSim.serverPort.ToString(); simProfileBlock["sim_uri"] = aSim.serverURI.ToString(); simProfileBlock["uuid"] = aSim.UUID.ToString(); @@ -1044,7 +1041,7 @@ namespace OpenSim.Grid.GridServer respstring += ""; respstring += "" + TheSim.ToString() + ""; respstring += "" + TheSim.regionName + ""; - respstring += "" + Util.GetHostFromDNS(TheSim.serverIP).ToString() + ""; + respstring += "" + TheSim.serverIP + ""; respstring += "" + TheSim.serverPort.ToString() + ""; respstring += "" + TheSim.regionLocX.ToString() + ""; respstring += "" + TheSim.regionLocY.ToString() + ""; -- cgit v1.1