diff options
author | Homer Horwitz | 2008-12-11 19:52:29 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-12-11 19:52:29 +0000 |
commit | d943abea579ab9e5f07fb5baac30991415655647 (patch) | |
tree | ffc7e1839d621a6b41433d030850a9e6685fe43d | |
parent | * Also add the OpenSim.Framework reference to prebuild.xml needed by Windows (diff) | |
download | opensim-SC-d943abea579ab9e5f07fb5baac30991415655647.zip opensim-SC-d943abea579ab9e5f07fb5baac30991415655647.tar.gz opensim-SC-d943abea579ab9e5f07fb5baac30991415655647.tar.bz2 opensim-SC-d943abea579ab9e5f07fb5baac30991415655647.tar.xz |
Move from IP to hostname for seed caps on login, for gridmode and standalone.
All the other caps (except the initial one) are already sent with hostname
instead of IP.
NOTE: This changes gridserver and userserver
-rw-r--r-- | OpenSim/Data/RegionProfileData.cs | 2 | ||||
-rw-r--r-- | OpenSim/Grid/GridServer/GridManager.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalLoginService.cs | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Data/RegionProfileData.cs b/OpenSim/Data/RegionProfileData.cs index 5a3a42c..3759341 100644 --- a/OpenSim/Data/RegionProfileData.cs +++ b/OpenSim/Data/RegionProfileData.cs | |||
@@ -161,7 +161,7 @@ namespace OpenSim.Data | |||
161 | simData.httpPort = Convert.ToUInt32((string) responseData["http_port"]); | 161 | simData.httpPort = Convert.ToUInt32((string) responseData["http_port"]); |
162 | simData.remotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); | 162 | simData.remotingPort = Convert.ToUInt32((string) responseData["remoting_port"]); |
163 | simData.serverURI = (string) responseData["server_uri"]; | 163 | simData.serverURI = (string) responseData["server_uri"]; |
164 | simData.httpServerURI = "http://" + simData.serverIP + ":" + simData.httpPort.ToString() + "/"; | 164 | simData.httpServerURI = "http://" + (string)responseData["sim_host"] + ":" + simData.httpPort.ToString() + "/"; |
165 | simData.UUID = new UUID((string) responseData["region_UUID"]); | 165 | simData.UUID = new UUID((string) responseData["region_UUID"]); |
166 | simData.regionName = (string) responseData["region_name"]; | 166 | simData.regionName = (string) responseData["region_name"]; |
167 | } | 167 | } |
diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index c60334b..be3a7cf 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs | |||
@@ -810,6 +810,7 @@ namespace OpenSim.Grid.GridServer | |||
810 | m_log.Info("[DATA]: found " + (string)simData.regionName + " regionHandle = " + | 810 | m_log.Info("[DATA]: found " + (string)simData.regionName + " regionHandle = " + |
811 | (string)requestData["region_handle"]); | 811 | (string)requestData["region_handle"]); |
812 | responseData["sim_ip"] = Util.GetHostFromDNS(simData.serverIP).ToString(); | 812 | responseData["sim_ip"] = Util.GetHostFromDNS(simData.serverIP).ToString(); |
813 | responseData["sim_host"] = simData.serverIP; | ||
813 | responseData["sim_port"] = simData.serverPort.ToString(); | 814 | responseData["sim_port"] = simData.serverPort.ToString(); |
814 | responseData["server_uri"] = simData.serverURI; | 815 | responseData["server_uri"] = simData.serverURI; |
815 | responseData["http_port"] = simData.httpPort.ToString(); | 816 | responseData["http_port"] = simData.httpPort.ToString(); |
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index 50a8e16..7f16ec2 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs | |||
@@ -309,9 +309,9 @@ namespace OpenSim.Region.Communications.Local | |||
309 | seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + "/CAPS/" + capsPath + "0000/"; | 309 | seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + "/CAPS/" + capsPath + "0000/"; |
310 | 310 | ||
311 | } | 311 | } |
312 | else | 312 | else |
313 | { | 313 | { |
314 | seedcap = "http://" + regionInfo.ExternalEndPoint.Address.ToString() + ":" + serversInfo.HttpListenerPort + "/CAPS/" + capsPath + "0000/"; | 314 | seedcap = "http://" + regionInfo.ExternalEndPoint + ":" + serversInfo.HttpListenerPort + "/CAPS/" + capsPath + "0000/"; |
315 | } | 315 | } |
316 | 316 | ||
317 | response.SeedCapability = seedcap; //regionInfo.ExternalEndPoint.Address.ToString() + ":" + regionInfo.HttpPort + "/CAPS/" + capsPath + "0000/"; | 317 | response.SeedCapability = seedcap; //regionInfo.ExternalEndPoint.Address.ToString() + ":" + regionInfo.HttpPort + "/CAPS/" + capsPath + "0000/"; |