aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1GridServices.cs')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1GridServices.cs24
1 files changed, 11 insertions, 13 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
index 5f00f15..1a72f31 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
@@ -405,24 +405,22 @@ namespace OpenSim.Region.Communications.OGS1
405 uint regX = Convert.ToUInt32((string) responseData["region_locx"]); 405 uint regX = Convert.ToUInt32((string) responseData["region_locx"]);
406 uint regY = Convert.ToUInt32((string) responseData["region_locy"]); 406 uint regY = Convert.ToUInt32((string) responseData["region_locy"]);
407 string externalHostName = (string) responseData["sim_ip"]; 407 string externalHostName = (string) responseData["sim_ip"];
408 uint port = Convert.ToUInt32(responseData["sim_port"]); 408 uint simPort = Convert.ToUInt32(responseData["sim_port"]);
409 // string externalUri = (string) responseData["sim_uri"]; 409 string regionName = (string)responseData["region_name"];
410 410 UUID regionID = new UUID((string)responseData["region_UUID"]);
411 //IPEndPoint neighbourInternalEndPoint = new IPEndPoint(IPAddress.Parse(internalIpStr), (int) port); 411 uint remotingPort = Convert.ToUInt32((string)responseData["remoting_port"]);
412 IPEndPoint neighbourInternalEndPoint = new IPEndPoint(Util.GetHostFromDNS(externalHostName), (int)port);
413 412
414 regionInfo = new RegionInfo(regX, regY, neighbourInternalEndPoint, externalHostName); 413 uint httpPort = 9000;
415
416 regionInfo.RemotingPort = Convert.ToUInt32((string) responseData["remoting_port"]);
417 regionInfo.RemotingAddress = externalHostName;
418
419 if (responseData.ContainsKey("http_port")) 414 if (responseData.ContainsKey("http_port"))
420 { 415 {
421 regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]); 416 httpPort = Convert.ToUInt32((string)responseData["http_port"]);
422 } 417 }
423 418
424 regionInfo.RegionID = new UUID((string) responseData["region_UUID"]); 419
425 regionInfo.RegionName = (string) responseData["region_name"]; 420 // string externalUri = (string) responseData["sim_uri"];
421
422 //IPEndPoint neighbourInternalEndPoint = new IPEndPoint(IPAddress.Parse(internalIpStr), (int) port);
423 regionInfo = RegionInfo.Create(regionID, regionName, regX, regY, externalHostName, httpPort, simPort, remotingPort);
426 424
427 lock (m_remoteRegionInfoCache) 425 lock (m_remoteRegionInfoCache)
428 { 426 {