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 userserver0.6.1-post-fixes
parent
f7cfb0694c
commit
d943abea57
|
@ -161,7 +161,7 @@ namespace OpenSim.Data
|
||||||
simData.httpPort = Convert.ToUInt32((string) responseData["http_port"]);
|
simData.httpPort = Convert.ToUInt32((string) responseData["http_port"]);
|
||||||
simData.remotingPort = Convert.ToUInt32((string) responseData["remoting_port"]);
|
simData.remotingPort = Convert.ToUInt32((string) responseData["remoting_port"]);
|
||||||
simData.serverURI = (string) responseData["server_uri"];
|
simData.serverURI = (string) responseData["server_uri"];
|
||||||
simData.httpServerURI = "http://" + simData.serverIP + ":" + simData.httpPort.ToString() + "/";
|
simData.httpServerURI = "http://" + (string)responseData["sim_host"] + ":" + simData.httpPort.ToString() + "/";
|
||||||
simData.UUID = new UUID((string) responseData["region_UUID"]);
|
simData.UUID = new UUID((string) responseData["region_UUID"]);
|
||||||
simData.regionName = (string) responseData["region_name"];
|
simData.regionName = (string) responseData["region_name"];
|
||||||
}
|
}
|
||||||
|
|
|
@ -810,6 +810,7 @@ namespace OpenSim.Grid.GridServer
|
||||||
m_log.Info("[DATA]: found " + (string)simData.regionName + " regionHandle = " +
|
m_log.Info("[DATA]: found " + (string)simData.regionName + " regionHandle = " +
|
||||||
(string)requestData["region_handle"]);
|
(string)requestData["region_handle"]);
|
||||||
responseData["sim_ip"] = Util.GetHostFromDNS(simData.serverIP).ToString();
|
responseData["sim_ip"] = Util.GetHostFromDNS(simData.serverIP).ToString();
|
||||||
|
responseData["sim_host"] = simData.serverIP;
|
||||||
responseData["sim_port"] = simData.serverPort.ToString();
|
responseData["sim_port"] = simData.serverPort.ToString();
|
||||||
responseData["server_uri"] = simData.serverURI;
|
responseData["server_uri"] = simData.serverURI;
|
||||||
responseData["http_port"] = simData.httpPort.ToString();
|
responseData["http_port"] = simData.httpPort.ToString();
|
||||||
|
|
|
@ -309,9 +309,9 @@ namespace OpenSim.Region.Communications.Local
|
||||||
seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + "/CAPS/" + capsPath + "0000/";
|
seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + "/CAPS/" + capsPath + "0000/";
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
seedcap = "http://" + regionInfo.ExternalEndPoint.Address.ToString() + ":" + serversInfo.HttpListenerPort + "/CAPS/" + capsPath + "0000/";
|
seedcap = "http://" + regionInfo.ExternalEndPoint + ":" + serversInfo.HttpListenerPort + "/CAPS/" + capsPath + "0000/";
|
||||||
}
|
}
|
||||||
|
|
||||||
response.SeedCapability = seedcap; //regionInfo.ExternalEndPoint.Address.ToString() + ":" + regionInfo.HttpPort + "/CAPS/" + capsPath + "0000/";
|
response.SeedCapability = seedcap; //regionInfo.ExternalEndPoint.Address.ToString() + ":" + regionInfo.HttpPort + "/CAPS/" + capsPath + "0000/";
|
||||||
|
|
Loading…
Reference in New Issue